Check if the Names dictionary actually contains a Dests dictionary before attempting to get the destinations
This commit is contained in:
parent
3051667397
commit
c68ffcf978
@ -419,7 +419,7 @@ var Catalog = (function CatalogClosure() {
|
|||||||
var xref = this.xref;
|
var xref = this.xref;
|
||||||
var dests = {}, nameTreeRef, nameDictionaryRef;
|
var dests = {}, nameTreeRef, nameDictionaryRef;
|
||||||
var obj = this.catDict.get('Names');
|
var obj = this.catDict.get('Names');
|
||||||
if (obj) {
|
if (obj && obj.has('Dests')) {
|
||||||
nameTreeRef = obj.getRaw('Dests');
|
nameTreeRef = obj.getRaw('Dests');
|
||||||
} else if (this.catDict.has('Dests')) {
|
} else if (this.catDict.has('Dests')) {
|
||||||
nameDictionaryRef = this.catDict.get('Dests');
|
nameDictionaryRef = this.catDict.get('Dests');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user