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:
commit
294c4a86af
@ -485,7 +485,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
|
|||||||
data.annotationType = AnnotationType.LINK;
|
data.annotationType = AnnotationType.LINK;
|
||||||
|
|
||||||
var action = dict.get('A');
|
var action = dict.get('A');
|
||||||
if (action) {
|
if (action && isDict(action)) {
|
||||||
var linkType = action.get('S').name;
|
var linkType = action.get('S').name;
|
||||||
if (linkType === 'URI') {
|
if (linkType === 'URI') {
|
||||||
var url = action.get('URI');
|
var url = action.get('URI');
|
||||||
|
Loading…
Reference in New Issue
Block a user