summaryrefslogtreecommitdiffstats
path: root/mailnews/local/src/nsMsgLocalStoreUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mailnews/local/src/nsMsgLocalStoreUtils.cpp')
-rw-r--r--mailnews/local/src/nsMsgLocalStoreUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/mailnews/local/src/nsMsgLocalStoreUtils.cpp b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
index 17d9b0f29..642694d3b 100644
--- a/mailnews/local/src/nsMsgLocalStoreUtils.cpp
+++ b/mailnews/local/src/nsMsgLocalStoreUtils.cpp
@@ -28,6 +28,9 @@ nsMsgLocalStoreUtils::AddDirectorySeparator(nsIFile *path)
bool
nsMsgLocalStoreUtils::nsShouldIgnoreFile(nsAString& name)
{
+ if (name.IsEmpty())
+ return true;
+
char16_t firstChar = name.First();
if (firstChar == '.' || firstChar == '#' ||
name.CharAt(name.Length() - 1) == '~')