Skip to content

Commit

Permalink
Merge pull request #5684 from timvandermeij/link-annotation-bug
Browse files Browse the repository at this point in the history
Make sure that an A entry in an annotation dictionary is also a dictionary itself
  • Loading branch information
Snuffleupagus committed Jan 31, 2015
2 parents e4f0ae2 + 06004d6 commit 294c4a8
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 294c4a8

Please sign in to comment.