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,11 +307,13 @@ var Catalog = (function CatalogClosure() {
continue; continue;
} }
var names = obj.get('Names'); var names = obj.get('Names');
if (names) {
for (i = 0, n = names.length; i < n; i += 2) { for (i = 0, n = names.length; i < n; i += 2) {
dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1])); dests[names[i]] = fetchDestination(xref.fetchIfRef(names[i + 1]));
} }
} }
} }
}
return shadow(this, 'destinations', dests); return shadow(this, 'destinations', dests);
}, },
getPage: function Catalog_getPage(n) { getPage: function Catalog_getPage(n) {