diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index 98a106839..bf7b522ab 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -302,7 +302,10 @@ Zotero.Schema = new function(){ while (entries.hasMoreElements()) { var file = entries.getNext(); file.QueryInterface(Components.interfaces.nsIFile); - if (!file.leafName.match(fileNameRE) || file.isDirectory()) { + // File might not exist in an SVN build with style symlinks + if (!file.exists() + || !file.leafName.match(fileNameRE) + || file.isDirectory()) { continue; } var fileModTime = Math.round(file.lastModifiedTime / 1000);