diff --git a/chrome/chromeFiles/content/scholar/ingester/browser.js b/chrome/chromeFiles/content/scholar/ingester/browser.js index 27e5fffe2e..92321e3946 100644 --- a/chrome/chromeFiles/content/scholar/ingester/browser.js +++ b/chrome/chromeFiles/content/scholar/ingester/browser.js @@ -211,31 +211,36 @@ Scholar.Ingester.Interface._deleteDocument = function(browser) { * Callback to be executed when scraping is complete */ Scholar.Ingester.Interface._finishScraping = function(documentObject) { - Scholar.Ingester.Interface.scrapeProgress.changeHeadline(Scholar.getString("ingester.scrapeComplete")); - - var fields = Scholar.ItemFields.getItemTypeFields(documentObject.item.getField("itemTypeID")); + if(documentObject.item) { + Scholar.Ingester.Interface.scrapeProgress.changeHeadline(Scholar.getString("ingester.scrapeComplete")); - var titleLabel = Scholar.getString("itemFields.title") + ":" - Scholar.Ingester.Interface.scrapeProgress.addResult(titleLabel, this.item.getField("title")); - var creators = documentObject.item.numCreators(); - if(creators) { - for(var i=0; i