diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 10:59:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 14:03:25 +0000 |
commit | ca9837247e5086a20e468832664b8a4c722dee2d (patch) | |
tree | 82484051d80c2f0e30e05c958832ba5b2eb56607 /connectivity | |
parent | 441ff2638bef1c22c829f50fef61f9cda01afd19 (diff) |
coverity#705789 Dereference before null check
Change-Id: Ie33efea9070d1ccd97572cfbb642db847a2f32f7
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/file/FResultSet.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connectivity/source/drivers/file/FResultSet.cxx b/connectivity/source/drivers/file/FResultSet.cxx index 59d4c47374a7..051e223c9aef 100644 --- a/connectivity/source/drivers/file/FResultSet.cxx +++ b/connectivity/source/drivers/file/FResultSet.cxx @@ -895,6 +895,9 @@ sal_Bool OResultSet::ExecuteRow(IResultSetHelper::Movement eFirstCursorPosition, IResultSetHelper::Movement eCursorPosition = eFirstCursorPosition; sal_Int32 nOffset = nFirstOffset; + if (!m_pTable) + return sal_False; + const OSQLColumns & rTableCols = *(m_pTable->getTableColumns()); sal_Bool bHasRestriction = m_pSQLAnalyzer->hasRestriction(); again: |