Merge pull request #342 from sbarman/annotation

Added default value for no annotations
This commit is contained in:
Chris Jones 2011-08-19 14:00:18 -07:00
commit 455ff74c19

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) {