[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Nov 11 14:48:18 UTC 2019
sc/source/ui/navipi/navcitem.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit f615cb363667565cb3c3d939248bc9601359321c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Nov 11 10:55:49 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Nov 11 15:47:20 2019 +0100
cid#1455327 Dereference null return value
Change-Id: I336659e820d46e8b23881fdf9d5f3b6fac072771
Reviewed-on: https://gerrit.libreoffice.org/82429
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/navipi/navcitem.cxx b/sc/source/ui/navipi/navcitem.cxx
index a8e2672c4428..8a3136952053 100644
--- a/sc/source/ui/navipi/navcitem.cxx
+++ b/sc/source/ui/navipi/navcitem.cxx
@@ -50,7 +50,8 @@ void ScNavigatorControllerItem::StateChanged( sal_uInt16 /* nSID */, SfxItemStat
{
const OUString& aAddress( pCellPosItem->GetValue() );
ScAddress aScAddress;
- aScAddress.Parse( aAddress, rNavigatorDlg.GetViewData()->GetDocument() );
+ ScViewData* pViewData = rNavigatorDlg.GetViewData();
+ aScAddress.Parse(aAddress, pViewData ? pViewData->GetDocument() : nullptr);
SCCOL nCol = aScAddress.Col()+1;
SCROW nRow = aScAddress.Row()+1;
More information about the Libreoffice-commits
mailing list