Make sure that an A entry in an annotation dictionary is also a dictionary itself

This commit is contained in:
Tim van der Meij 2015-01-28 22:03:04 +01:00
parent 1b8e44e0d8
commit 06004d6a92

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