mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-02-08 00:21:11 +01:00
Makes PDF files load when xrefEntry is undefined
This commit is contained in:
parent
2909225fb0
commit
dd3df20a88
@ -1100,7 +1100,7 @@ var XRef = (function XRefClosure() {
|
||||
|
||||
getEntry: function XRef_getEntry(i) {
|
||||
var xrefEntry = this.entries[i];
|
||||
if (xrefEntry !== null && !xrefEntry.free && xrefEntry.offset) {
|
||||
if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
|
||||
return xrefEntry;
|
||||
}
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user