www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 402fa961efeb2e6876fc1e40885db757077448ac
parent 1ac712db12f437a7c630b0077047cd4367b2f0d8
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 16 Mar 2011 22:45:00 +0000

fix files left open, tested this time


Diffstat:
Mchrome/content/zotero/xpcom/translation/browser_firefox.js | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/browser_firefox.js b/chrome/content/zotero/xpcom/translation/browser_firefox.js @@ -335,10 +335,15 @@ Zotero.Translate.IO.Read.prototype = { Zotero.debug("Translate: Initializing RDF data store"); this._dataStore = new Zotero.RDF.AJAW.RDFIndexedFormula(); var parser = new Zotero.RDF.AJAW.RDFParser(this._dataStore); - var nodes = Zotero.Translate.IO.parseDOMXML(this._rawStream, this._charset, this.file.fileSize); - parser.parse(nodes, baseURI); - - this.RDF = new Zotero.Translate.IO._RDFSandbox(this._dataStore); + try { + var nodes = Zotero.Translate.IO.parseDOMXML(this._rawStream, this._charset, this.file.fileSize); + parser.parse(nodes, baseURI); + + this.RDF = new Zotero.Translate.IO._RDFSandbox(this._dataStore); + } catch(e) { + this.close(); + throw "Translate: No RDF found"; + } }, "setCharacterSet":function(charset) {