summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-01-16 13:31:37 +0000
committerMichael Meeks <michael.meeks@collabora.com>2018-01-16 21:25:28 +0100
commitad7e6339e5e5cf465a2ef25442099eb59f1a0deb (patch)
tree72ae5caa287ba1a3c1cebf68a12e431645e2ad8f
parent699efc4163cdca68c86fe8d628fafb08dd6a726f (diff)
tdf#113755 - avoid null ptr de-reference during shutdown.
Why the PostUserEvent's that should do the XTDataObject async destroy are not completed by here, is rather unclear; but - de-referencing NULL is not a great thing to do during shutdown. http://crashreport.libreoffice.org/stats/crash_details/a7d8fd19-0512-4292-b3a0-140dcff204c8 Change-Id: I3f294379f07f4cfc0106c1b5fc5e705c41e78b03 Reviewed-on: https://gerrit.libreoffice.org/48007 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 69ba0a93c0a0..4a733eeefd3c 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -936,6 +936,13 @@ OUString SAL_CALL SfxBaseModel::getURL()
Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs()
{
SfxModelGuard aGuard( *this );
+
+ if (!SfxApplication::Get()) // tdf#113755
+ {
+ SAL_WARN("sfx.appl", "Unexpected operations on model");
+ return m_pData->m_seqArguments;
+ }
+
if ( m_pData->m_pObjectShell.is() )
{
Sequence< beans::PropertyValue > seqArgsNew;