From 5422182eda9451ba406c4762065aa88da7249bac Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Fri, 24 Jun 2011 23:27:22 -0400 Subject: [PATCH] fix issue #78, don't try to use 'in' operator on null --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index a34cd7c42..48fd742b2 100644 --- a/pdf.js +++ b/pdf.js @@ -979,7 +979,7 @@ function IsArray(v) { } function IsStream(v) { - return typeof v == "object" && "getChar" in v; + return typeof v == "object" && v != null && ("getChar" in v); } function IsRef(v) {