diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-20 00:16:18 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-19 23:43:11 +0000 |
commit | b0149eccbfa080f6f5a51a02b33af58e1ee15f65 (patch) | |
tree | 84f0870930ed81aacd65c5b003b3bbd1e0e76f43 /connectivity | |
parent | coverity#735382 Copy-paste error (diff) | |
download | core-b0149eccbfa080f6f5a51a02b33af58e1ee15f65.tar.gz core-b0149eccbfa080f6f5a51a02b33af58e1ee15f65.zip |
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>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/parse/sqliterator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |