Skip to content

Commit

Permalink
Merge pull request mozilla#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 authored and speedplane committed Feb 24, 2015
2 parents 0c95e0f + 41e6a2d commit 9d5f001
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 9d5f001

Please sign in to comment.