From 92864323e721b52e589e1720206b1a435f85263d Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Fri, 24 Jan 2014 04:14:38 -0600 Subject: coverity#4407301 Dereference after null check Change-Id: I3cbb28a65dc75ac641cac88148e36ec3a819ffc4 --- connectivity/source/drivers/mysql/YTable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit