Merge pull request #4606 from timvandermeij/xrefentry

Makes PDF files load when xrefEntry is undefined
This commit is contained in:
Yury Delendik 2014-04-12 19:37:14 -05:00
commit bb739c011e

View File

@ -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;