summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-19 11:45:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-19 15:37:55 +0000
commitd8c25ba6e499f99a25adf0c70a14c066bc612b42 (patch)
tree2f67aa00cde67630381b1ad96444dc029868d936 /svx
parentae70ec25de95fbdb039a245ab01e7bf633d5960f (diff)
coverity#735861 Explicit null dereferenced
Change-Id: I6aab9f94804ea3de4b7a8f17589df9ebc54be42d
Diffstat (limited to 'svx')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 9fd0bde2350f..749f83d14b07 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -3076,7 +3076,7 @@ sal_Bool DbGridControl::SaveModified()
size_t Location = GetModelColumnPos( GetCurColumnId() );
DbGridColumn* pColumn = ( Location < m_aColumns.size() ) ? m_aColumns[ Location ] : NULL;
- sal_Bool bOK = pColumn->Commit();
+ sal_Bool bOK = pColumn ? pColumn->Commit() : sal_False;
DBG_ASSERT( Controller().Is(), "DbGridControl::SaveModified: was modified, by have no controller?!" );
if ( !Controller().Is() )
// this might happen if the callbacks implicitly triggered by Commit