From 982ea98c4477a5f2841254895fb34896ec9bf55e Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Mon, 9 Jan 2012 20:08:22 -0600 Subject: [PATCH] replacing non-existent page content with empty one --- src/core.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.js b/src/core.js index 765a239b7..a9c5b15a2 100644 --- a/src/core.js +++ b/src/core.js @@ -196,6 +196,9 @@ var Page = (function PageClosure() { for (i = 0; i < n; ++i) content[i] = xref.fetchIfRef(content[i]); content = new StreamsSequenceStream(content); + } else if (!content) { + // replacing non-existent page content with empty one + content = new Stream(new Uint8Array(0)); } var pe = this.pe = new PartialEvaluator(