ebidel / idb.filesystem.js

HTML5 Filesystem API polyfill using IndexedDB
https://www.npmjs.com/package/idb.filesystem.js
Other
488 stars 46 forks source link

Truncating a new file causes null pointer dereference. #17

Closed ncbray closed 11 years ago

ncbray commented 11 years ago

FileWriter.truncate references blob.type. If a user opens a new file, blob will start out null. If the first operation performed on a new file is a truncation, blob.type will fail because blob is null.

ebidel commented 11 years ago

Fixed by https://github.com/ebidel/idb.filesystem.js/pull/20