diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 10:55:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 14:03:24 +0000 |
commit | db8d9db4a341e254f103f99604022def798be36c (patch) | |
tree | 08c8f1ba846cc1951f53cb7ae7d239d4ac994fcf /cui/source/tabpages | |
parent | ec76f39ab52bbfa8d2ce18e28856a443c4fd1d6e (diff) |
coverity#705797 Dereference before null check
Change-Id: If504fce5a437d9d4f5ea89be154fa324d5cca5a3
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r-- | cui/source/tabpages/numpages.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 0ec0d18904e5..99ae2f1bb1aa 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -258,7 +258,7 @@ void SvxSingleNumPickTabPage::ActivatePage(const SfxItemSet& rSet) delete pSaveNum; pSaveNum = new SvxNumRule(*((SvxNumBulletItem*)pItem)->GetNumRule()); } - if(*pSaveNum != *pActNum) + if(pActNum && *pSaveNum != *pActNum) { *pActNum = *pSaveNum; m_pExamplesVS->SetNoSelection(); |