[Libreoffice-commits] core.git: sc/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 22 13:26:03 UTC 2020


 sc/source/ui/unoobj/docuno.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65b5a9848bd01cabbbee8f6e751679a04c1da10f
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Fri May 29 16:18:24 2020 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Jun 22 16:24:40 2020 +0300

    tdf#128502: Avoid potential crash in mobile app with multiple open documents
    
    Not sure if actually needed, but can hardly harm.
    
    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 96ce59f37c9b..c8126824a173 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -541,7 +541,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