diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-17 13:48:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-17 14:10:41 +0000 |
commit | 61a7c6c405d8578fc2508196d9b7e85de44bd6ed (patch) | |
tree | 766bd31eb6d615655d7cf457b384be2815b3d27c /sc/source | |
parent | 49f05934edd3723666b7c52eccbf4d0c9a688eb7 (diff) |
coverity#1427628 Dereference before null check
Change-Id: Ic68d765cc21733ba864b78c135eaae4ec673e7c1
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index d14e7cade7d4..e391c28ffeda 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -551,6 +551,8 @@ void ScTabViewShell::ExecuteCellFormatDlg(SfxRequest& rReq, const OString &rName { const SfxItemSet* pOutSet = pDlg->GetOutputItemSet(); + assert(pOutSet); + const SfxPoolItem* pItem=nullptr; if(pOutSet->GetItemState(SID_ATTR_NUMBERFORMAT_INFO,true,&pItem)==SfxItemState::SET) { |