diff options
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 5694edf53c58..a1a2bc433a0a 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -853,6 +853,9 @@ void Export::InsertListEntry(const OString &rLine) { ResData *pResData = ( nLevel-1 < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL; + if (!pResData) + std::exit(EXIT_FAILURE); + if( pResData->m_aList.empty() ) nListIndex = 0; |