commit 9c92f50fab89ae6254833143f20faffd2eb70171 parent fed9fe597da0b69cfcc564d6bcdebc1329ae8188 Author: aurimasv <aurimas.dev@gmail.com> Date: Mon, 12 Nov 2012 11:12:39 -0600 Avoid potential exceptions Diffstat:
| M | 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 @@ -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 {