Kaydet (Commit) ccb5f1a7 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158098 Explicit null dereferenced

Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214
üst 6459d7be
...@@ -853,6 +853,9 @@ void Export::InsertListEntry(const OString &rLine) ...@@ -853,6 +853,9 @@ void Export::InsertListEntry(const OString &rLine)
{ {
ResData *pResData = ( nLevel-1 < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL; ResData *pResData = ( nLevel-1 < aResStack.size() ) ? aResStack[ nLevel-1 ] : NULL;
if (!pResData)
std::exit(EXIT_FAILURE);
if( pResData->m_aList.empty() ) if( pResData->m_aList.empty() )
nListIndex = 0; nListIndex = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment