Skip to content

Commit 914f4dc

Browse files
committed
Merge pull request mozilla#2405 from mehlis/patch-1
Update src/obj.js
2 parents 80f8f51 + e95fbb3 commit 914f4dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/obj.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ var Catalog = (function CatalogClosure() {
307307
continue;
308308
}
309309
var names = obj.get('Names');
310-
for (i = 0, n = names.length; i < n; i += 2) {
311-
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
310+
if (names) {
311+
for (i = 0, n = names.length; i < n; i += 2) {
312+
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
313+
}
312314
}
313315
}
314316
}

0 commit comments

Comments
 (0)