From ccb5f1a7914ae857a447a7dceacc62344b8c78af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 29 Jan 2014 13:31:52 +0000 Subject: [PATCH] coverity#1158098 Explicit null dereferenced Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214 --- l10ntools/source/export.cxx | 3 +++ 1 file changed, 3 insertions(+) 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;