fix issue #78, don't try to use 'in' operator on null

This commit is contained in:
Andreas Gal 2011-06-24 23:27:22 -04:00
parent 558a12bc56
commit 2f246236cb

2
pdf.js
View File

@ -979,7 +979,7 @@ function IsArray(v) {
} }
function IsStream(v) { function IsStream(v) {
return typeof v == "object" && "getChar" in v; return typeof v == "object" && v != null && ("getChar" in v);
} }
function IsRef(v) { function IsRef(v) {