summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);