coverity#1158098 Explicit null dereferenced
Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user