diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-24 04:11:38 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 03:10:53 -0600 |
commit | 3de5e97e435504f7194e540228087aa57148552a (patch) | |
tree | 76828bac39d20aac3dc02065e3f6393e102fe530 /connectivity | |
parent | 57f288fdcc775f044700aac98c8cf94024c4b7db (diff) |
coverity#440730 Dereference after null check
Change-Id: Iab8f02e3bb1e03c0ee7efdd0b47d8329d786578d
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/hsqldb/HTable.cxx | 2 |
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); |