From b0149eccbfa080f6f5a51a02b33af58e1ee15f65 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 20 Mar 2013 00:16:18 +0100 Subject: [PATCH] coverity#704590 Explicit null dereferenced Change-Id: I787a39959a1558fe4f284bc1941194a841e2d600 Reviewed-on: https://gerrit.libreoffice.org/2860 Reviewed-by: Eike Rathke Tested-by: Eike Rathke --- connectivity/source/parse/sqliterator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 37b3557d2169..1901f49cc629 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -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; }