mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Avoid potential exceptions
This commit is contained in:
parent
fed9fe597d
commit
9c92f50fab
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue