diff options
author | Tor Lillqvist <tml@iki.fi> | 2020-05-29 16:18:24 +0300 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-06-19 14:26:16 +0100 |
commit | 0bfff7e927acc7ea6b41896b5b37ec8be257b73b (patch) | |
tree | 5dd6fae01166b236bd8d4d09422f4421f4f24d40 /sc/source/ui | |
parent | 1b0c28bf26e57e48dd2e82c25bbe5f696ae3f10c (diff) |
tdf#128502: Avoid potential crash in mobile app with multiple open documents
Change-Id: Ibb819818db40b2f086e5c1f2330a7f8f2fcc1727
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95148
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index a1256c17f0b2..a89b32bb92ed 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -539,7 +539,7 @@ int ScModelObj::getParts() int ScModelObj::getPart() { ScViewData* pViewData = ScDocShell::GetViewData(); - return pViewData->GetViewShell()->getPart(); + return pViewData ? pViewData->GetViewShell()->getPart() : 0; } OUString ScModelObj::getPartInfo( int nPart ) |