From ebef88143f79b2f73c8dee40f1e2fcea58b07454 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 16 Sep 2008 21:39:02 +0000 Subject: [PATCH] Don't fail if SVN style symlink points to missing file --- chrome/content/zotero/xpcom/schema.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);