summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index 2f105d74603f..c31239990d9c 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -1212,11 +1212,11 @@ namespace
const ::connectivity::OSQLParseNode* pNode,
sal_uInt16& rLevel )
{
- if (!SQL_ISRULE(pNode, select_statement))
+ if (!pNode || !SQL_ISRULE(pNode, select_statement))
return eNoSelectStatement;
// nyi: more checking for the correct structure!
- pNode = pNode ? pNode->getChild(3)->getChild(1) : NULL;
+ pNode = pNode->getChild(3)->getChild(1);
// no where clause found
if (!pNode || pNode->isLeaf())
return eOk;