diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-09-16 16:14:33 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-09-17 05:54:59 +0200 |
commit | 5eab23392c5c80ae9cf712c4e7fba21cfff02dae (patch) | |
tree | c9717058631b6a1d48e677d33fa0ee9861b633cc /sc/source/ui | |
parent | 7cebd7df0cfcbf906848bfbbdee614fdbd90af8a (diff) |
Check return value of GetViewBindings
... as done in all other places where it's called
Change-Id: Ic941cf433e96bb8bfa6ea81c52c044cc424100eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173436
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index a784e9d759d4..f79601df9f39 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -841,7 +841,8 @@ void ScTabViewShell::ExecuteSave( SfxRequest& rReq ) // This will work only if .uno:ModifiedStatus message will be removed from // the mechanism that keeps in the message queue only last message of // a particular status even if the values are different. - GetViewData().GetDocShell()->GetViewBindings()->Update(SID_DOC_MODIFIED); + if (SfxBindings* pBindings = GetViewData().GetDocShell()->GetViewBindings()) + pBindings->Update(SID_DOC_MODIFIED); } } |