From 9c92f50fab89ae6254833143f20faffd2eb70171 Mon Sep 17 00:00:00 2001 From: aurimasv Date: Mon, 12 Nov 2012 11:12:39 -0600 Subject: [PATCH] Avoid potential exceptions --- chrome/content/zotero/ingester/selectitems.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/ingester/selectitems.js b/chrome/content/zotero/ingester/selectitems.js index 32c01596c..8f639248c 100644 --- a/chrome/content/zotero/ingester/selectitems.js +++ b/chrome/content/zotero/ingester/selectitems.js @@ -50,7 +50,7 @@ Zotero_Ingester_Interface_SelectItems.init = function() { var item = this.io.dataIn[i]; var title, checked = false; - if(typeof(item) != "string" && item.title != undefined) { + if(item && typeof(item) == "object" && item.title !== undefined) { title = item.title; checked = !!item.checked; } else {