mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #86 from andreasgal/staging
fix issue #78, don't try to use 'in' operator on null
This commit is contained in:
commit
636a548b5d
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue