diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index dfaa94951..72950f77e 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -3474,6 +3474,12 @@ Zotero.Sync.Server.Data = new function() { data.dateModified = xmlItem.@dateModified.toString(); } data.itemTypeID = Zotero.ItemTypes.getID(xmlItem.@itemType.toString()); + // TEMP - NSF + if (!data.itemTypeID) { + var msg = "Invalid item type '" + xmlItem.@itemType.toString() + "' in Zotero.Sync.Server.Data.xmlToItem()"; + var e = new Zotero.Error(msg, "INVALID_ITEM_TYPE"); + throw (e); + } var changedFields = {};