coverity#1158098 Explicit null dereferenced

Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214
This commit is contained in:
Caolán McNamara
2014-01-29 13:31:52 +00:00
parent 6459d7beb1
commit ccb5f1a791

View File

@@ -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;