Update src/obj.js

fix Issue #1523
This commit is contained in:
Christian Mehlis 2012-11-24 21:31:05 +01:00
parent 80f8f51b8d
commit e95fbb3860

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]));
}
}
}
}