[Libreoffice-commits] core.git: connectivity/source
Julien Nabet
serval2412 at yahoo.fr
Tue Mar 19 16:43:30 PDT 2013
connectivity/source/parse/sqliterator.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b0149eccbfa080f6f5a51a02b33af58e1ee15f65
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Mar 20 00:16:18 2013 +0100
coverity#704590 Explicit null dereferenced
Change-Id: I787a39959a1558fe4f284bc1941194a841e2d600
Reviewed-on: https://gerrit.libreoffice.org/2860
Reviewed-by: Eike Rathke <erack at redhat.com>
Tested-by: Eike Rathke <erack at redhat.com>
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index 37b3557..1901f49 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;
}
More information about the Libreoffice-commits
mailing list