Merge pull request #4606 from timvandermeij/xrefentry
Makes PDF files load when xrefEntry is undefined
This commit is contained in:
commit
bb739c011e
@ -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…
Reference in New Issue
Block a user