commit 03be861eff9ca0d177bf308889a2c595a07cc40f
parent 402fa961efeb2e6876fc1e40885db757077448ac
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 16 Mar 2011 22:56:12 +0000
fix import of non-RDF files, broken by last commit
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/browser_firefox.js b/chrome/content/zotero/xpcom/translation/browser_firefox.js
@@ -400,8 +400,10 @@ Zotero.Translate.IO.Read.prototype = {
var myIndex = Zotero.Translate.IO.maintainedInstances.indexOf(this);
if(myIndex !== -1) Zotero.Translate.IO.maintainedInstances.splice(myIndex, 1);
- this._rawStream.close();
- delete this._rawStream;
+ if(this._rawStream) {
+ this._rawStream.close();
+ delete this._rawStream;
+ }
}
}
Zotero.Translate.IO.Read.prototype.__defineGetter__("contentLength",