diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 14:16:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 20:47:40 +0000 |
commit | 55eec51c82acdff0e86e5af89aff62c0cf1f64d9 (patch) | |
tree | c274c9497f3644aba73e0ca624da2d636028be99 /sc | |
parent | be85be8c2a7c4d3bc34cbda365d2dcaacfe09241 (diff) |
coverity#735797 Explicit null dereferenced
Change-Id: I67345e7eaae16baf677e9aad721d39b4ea0c43d1
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/lotus/tool.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx index d0c136aad92b..f4f2dad260a0 100644 --- a/sc/source/filter/lotus/tool.cxx +++ b/sc/source/filter/lotus/tool.cxx @@ -94,6 +94,9 @@ void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char* pString ) pJustify = pAttrStandard; } + if (!pString) + return; + pDoc->ApplyAttr( nCol, nRow, nTab, *pJustify ); ScSetStringParam aParam; aParam.setTextInput(); |