coverity#704590 Explicit null dereferenced
Change-Id: I787a39959a1558fe4f284bc1941194a841e2d600 Reviewed-on: https://gerrit.libreoffice.org/2860 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
parent
fb33deba9e
commit
b0149eccbf
@ -1930,7 +1930,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getWhereTree() const
|
||||
{
|
||||
pWhereClause = m_pParseTree->getChild(m_pParseTree->count()-1);
|
||||
}
|
||||
if(pWhereClause->count() != 2)
|
||||
if(pWhereClause && pWhereClause->count() != 2)
|
||||
pWhereClause = NULL;
|
||||
return pWhereClause;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user