diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-06 21:18:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-07 21:04:14 +0200 |
commit | e3104eb246bdf623ad01fee8ba192a4926cb264c (patch) | |
tree | bbfb253c4e82b903d19c17e7719308e469718faa | |
parent | 177dbe968b5af1c548be9f52178daa528edc2aab (diff) |
assert on empty line
Change-Id: Ifa3cccb13a3595998d4c85957a69fb7ecb047dd0
Reviewed-on: https://gerrit.libreoffice.org/52525
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | linguistic/source/dicimp.cxx | 2 |
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 = |