Merge pull request #2405 from mehlis/patch-1

Update src/obj.js
This commit is contained in:
Yury Delendik 2012-11-24 14:20:50 -08:00
commit 914f4dc703

View File

@ -307,8 +307,10 @@ var Catalog = (function CatalogClosure() {
continue;
}
var names = obj.get('Names');
for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
if (names) {
for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
}
}
}
}