Merge pull request #86 from andreasgal/staging

fix issue #78, don't try to use 'in' operator on null
This commit is contained in:
Chris Jones 2011-06-24 20:43:48 -07:00
commit 636a548b5d

2
pdf.js
View File

@ -1010,7 +1010,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) {