[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sc/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 10 10:29:01 UTC 2020
sc/source/ui/unoobj/docuno.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8fba80db6996fef9e4bf17e0c5d1ec69214ca8bf
Author: Tor Lillqvist <tml at iki.fi>
AuthorDate: Fri May 29 16:18:24 2020 +0300
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Jun 10 12:28:31 2020 +0200
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 at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 4145fd55769c..5cdac44a46ab 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -544,7 +544,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 )
More information about the Libreoffice-commits
mailing list