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