From e95fbb3860bc2c8cd2cae64496351fa00426d4b3 Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Sat, 24 Nov 2012 21:31:05 +0100 Subject: [PATCH] Update src/obj.js fix Issue #1523 --- src/obj.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/obj.js b/src/obj.js index a828ed072..c2dc720d9 100644 --- a/src/obj.js +++ b/src/obj.js @@ -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])); + } } } }