Added default value for no annotations

This commit is contained in:
sbarman 2011-08-19 11:24:12 -07:00
parent 2634a72c53
commit a67c63db13

2
pdf.js
View File

@ -3342,7 +3342,7 @@ var Page = (function() {
},
getLinks: function() {
var xref = this.xref;
var annotations = xref.fetchIfRef(this.annotations);
var annotations = xref.fetchIfRef(this.annotations) || [];
var i, n = annotations.length;
var links = [];
for (i = 0; i < n; ++i) {