From e3104eb246bdf623ad01fee8ba192a4926cb264c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 6 Apr 2018 21:18:57 +0100 Subject: assert on empty line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifa3cccb13a3595998d4c85957a69fb7ecb047dd0 Reviewed-on: https://gerrit.libreoffice.org/52525 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- linguistic/source/dicimp.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linguistic') 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 = -- cgit