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 8daac2dc64
commit 5422182eda

2
pdf.js
View File

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