]> git.parisson.com Git - pdf.js.git/commitdiff
Fix issue #1302
authorSaebekassebil <saebekassebil@gmail.com>
Sun, 25 Mar 2012 11:00:43 +0000 (13:00 +0200)
committerSaebekassebil <saebekassebil@gmail.com>
Sun, 25 Mar 2012 11:00:43 +0000 (13:00 +0200)
src/stream.js

index f76a07b4cf5c8485523a0fa86ca18ebc10affeb5..d31f3d50b8b5f8cfa6c869c739952d72f47672f6 100644 (file)
@@ -2056,7 +2056,7 @@ var CCITTFaxStream = (function CCITTFaxStreamClosure() {
     if (this.eoblock) {
       code = this.lookBits(7);
       p = twoDimTable[code];
-      if (p[0] > 0) {
+      if (p && p[0] > 0) {
         this.eatBits(p[0]);
         return p[1];
       }