diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 13:41:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 14:30:41 +0000 |
commit | b7180fa62c8a4b8414c55a9b8c278ef7400cd563 (patch) | |
tree | ddfc13aac6b1122a198826970fadd666540f3e88 /svx | |
parent | ab615e29eba8557197f5f462d25dd18af47764d3 (diff) |
coverity#705894 Dereference before null check
Change-Id: Ica2a7b9b53af2b3e17fa51f9b49762c01a1bfa90
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 72b77c59fca6..bed8056280b5 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -3776,7 +3776,7 @@ OUString SAL_CALL FmXEditCell::getText() throw( RuntimeException ) if ( m_pEditImplementation->GetControl().IsVisible() && m_pColumn->GetParent().getDisplaySynchron()) { // if the display isn't sync with the cursor we can't ask the edit field - LineEnd eLineEndFormat = m_pColumn ? getModelLineEndSetting( m_pColumn->getModel() ) : LINEEND_LF; + LineEnd eLineEndFormat = getModelLineEndSetting( m_pColumn->getModel() ); aText = m_pEditImplementation->GetText( eLineEndFormat ); } else |