Browse Source

fix issue #78, don't try to use 'in' operator on null

Andreas Gal 14 years ago
parent
commit
5422182eda
  1. 2
      pdf.js

2
pdf.js

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

Loading…
Cancel
Save