Merge pull request #5684 from timvandermeij/link-annotation-bug

Make sure that an A entry in an annotation dictionary is also a dictionary itself
This commit is contained in:
Jonas Jenwald 2015-01-31 13:12:10 +01:00
commit 294c4a86af

View File

@ -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');