sc/source/ui/unoobj/docuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8fba80db6996fef9e4bf17e0c5d1ec69214ca8bf Author: Tor Lillqvist <t...@iki.fi> AuthorDate: Fri May 29 16:18:24 2020 +0300 Commit: Andras Timar <andras.ti...@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 <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@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 ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits