summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--linguistic/source/dicimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index b2208a7ca876..12c82f461401 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -376,7 +376,7 @@ ErrCode DictionaryNeo::loadEntries(const OUString &rMainURL)
// remaining lines - stock strings (a [==] b)
while (pStream->ReadLine(aLine))
{
- if (aLine[0] == '#') // skip comments
+ if (aLine.isEmpty() || aLine[0] == '#') // skip comments
continue;
OUString aText = OStringToOUString(aLine, RTL_TEXTENCODING_UTF8);
uno::Reference< XDictionaryEntry > xEntry =