fix issue #78, don't try to use 'in' operator on null
This commit is contained in:
parent
8daac2dc64
commit
5422182eda
2
pdf.js
2
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user