Skip to content

Commit

Permalink
Make sure that an A entry in an annotation dictionary is also a dicti…
Browse files Browse the repository at this point in the history
…onary itself
  • Loading branch information
timvandermeij committed Jan 29, 2015
1 parent 1b8e44e commit 06004d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 06004d6

Please sign in to comment.