[Pkg-javascript-commits] [pdf.js] 137/210: Check if the Names dictionary actually contains a Dests dictionary before attempting to get the destinations

David Prévot taffit at moszumanska.debian.org
Thu Jun 5 14:21:10 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch upstream
in repository pdf.js.

commit c68ffcf9785db3b4f0cfb196384622f376892b31
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed May 14 12:43:20 2014 +0200

    Check if the Names dictionary actually contains a Dests dictionary before attempting to get the destinations
---
 src/core/obj.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/obj.js b/src/core/obj.js
index 8d61452..9c2c77f 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -419,7 +419,7 @@ var Catalog = (function CatalogClosure() {
       var xref = this.xref;
       var dests = {}, nameTreeRef, nameDictionaryRef;
       var obj = this.catDict.get('Names');
-      if (obj) {
+      if (obj && obj.has('Dests')) {
         nameTreeRef = obj.getRaw('Dests');
       } else if (this.catDict.has('Dests')) {
         nameDictionaryRef = this.catDict.get('Dests');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list