diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-24 04:14:38 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-01-25 03:10:53 -0600 |
commit | 92864323e721b52e589e1720206b1a435f85263d (patch) | |
tree | f514321140a79d375123daaeb2a938400244289c /connectivity | |
parent | 3de5e97e435504f7194e540228087aa57148552a (diff) |
coverity#4407301 Dereference after null check
Change-Id: I3cbb28a65dc75ac641cac88148e36ec3a819ffc4
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysql/YTable.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysql/YTable.cxx b/connectivity/source/drivers/mysql/YTable.cxx index decb437b75bb..aabd1517ac5b 100644 --- a/connectivity/source/drivers/mysql/YTable.cxx +++ b/connectivity/source/drivers/mysql/YTable.cxx @@ -181,7 +181,7 @@ void SAL_CALL OMySQLTable::alterColumnByName( const OUString& colName, const Ref #endif ); - if ( m_pColumns && !m_pColumns->hasByName(colName) ) + if ( !m_pColumns || !m_pColumns->hasByName(colName) ) throw NoSuchElementException(colName,*this); |