1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

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