summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-01-24 04:11:38 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-01-25 03:10:53 -0600
commit3de5e97e435504f7194e540228087aa57148552a (patch)
tree76828bac39d20aac3dc02065e3f6393e102fe530 /connectivity
parent57f288fdcc775f044700aac98c8cf94024c4b7db (diff)
coverity#440730 Dereference after null check
Change-Id: Iab8f02e3bb1e03c0ee7efdd0b47d8329d786578d
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/hsqldb/HTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx
index 79edbf500078..247bbeed0c37 100644
--- a/connectivity/source/drivers/hsqldb/HTable.cxx
+++ b/connectivity/source/drivers/hsqldb/HTable.cxx
@@ -162,7 +162,7 @@ void SAL_CALL OHSQLTable::alterColumnByName( const OUString& colName, const Refe
#endif
);
- if ( m_pColumns && !m_pColumns->hasByName(colName) )
+ if ( !m_pColumns || !m_pColumns->hasByName(colName) )
throw NoSuchElementException(colName,*this);