From e84f7f6ef84f293e848980113a64cee4e772c5ca Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 11 Feb 2009 20:05:45 +0000 Subject: [PATCH] Fix "col.lockDateModified is not a function" error --- chrome/content/zotero/xpcom/sync.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index db4673b131..320e97164f 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -2085,6 +2085,10 @@ Zotero.Sync.Server.Data = new function() { var collections = []; for each(var colKey in deletedCollectionKeys) { var col = Zotero.Collections.getByKey(colKey); + // If collection never existed on this side + if (!col) { + continue; + } col.lockDateModified(); collections.push(col); }