[Pkg-javascript-commits] [pdf.js] 92/116: Make sure that an A entry in an annotation dictionary is also a dictionary itself

David Prévot taffit at moszumanska.debian.org
Fri Mar 6 16:20:04 UTC 2015


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

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

commit 06004d6a92170fefa5c9152b177b6a8e577055d2
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Wed Jan 28 22:03:04 2015 +0100

    Make sure that an A entry in an annotation dictionary is also a dictionary itself
---
 src/core/annotation.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/annotation.js b/src/core/annotation.js
index 06ba73a..bd4fed8 100644
--- a/src/core/annotation.js
+++ b/src/core/annotation.js
@@ -485,7 +485,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
     data.annotationType = AnnotationType.LINK;
 
     var action = dict.get('A');
-    if (action) {
+    if (action && isDict(action)) {
       var linkType = action.get('S').name;
       if (linkType === 'URI') {
         var url = action.get('URI');

-- 
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