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:
Julien Nabet
2013-03-20 00:16:18 +01:00
committed by Eike Rathke
parent fb33deba9e
commit b0149eccbf

View File

@@ -1930,7 +1930,7 @@ const OSQLParseNode* OSQLParseTreeIterator::getWhereTree() const
{ {
pWhereClause = m_pParseTree->getChild(m_pParseTree->count()-1); pWhereClause = m_pParseTree->getChild(m_pParseTree->count()-1);
} }
if(pWhereClause->count() != 2) if(pWhereClause && pWhereClause->count() != 2)
pWhereClause = NULL; pWhereClause = NULL;
return pWhereClause; return pWhereClause;
} }