summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-01-26 22:18:16 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2021-01-27 11:28:31 +0100
commit9e9abb0263851e691dfe5b245e1dc6df790cb467 (patch)
treeb4b396f54d14a2311e61840801aece729b471c50 /vcl
parent1e6853f007994c803802fda563b70bb71063488b (diff)
Fix crash in ProcessEventsToIdle debug code
... and that code formatting is from clang-format. Change-Id: Ia73780f5f756a8c3493d27263347190289e4c953 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109999 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> (cherry picked from commit 0c7e8ef07fe9ba7ebc95fdeb5f58275decb4f0fc) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109976 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svapp.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index f91375e77edd..676fa26e1038 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -487,8 +487,10 @@ void Scheduler::ProcessEventsToIdle()
Idle *pIdle = dynamic_cast<Idle*>(pSchedulerData->mpTask);
if (pIdle && pIdle->IsActive())
{
- SAL_WARN("vcl.schedule", "Unprocessed Idle: "
- << pIdle << " " << pIdle->GetDebugName());
+ SAL_WARN("vcl.schedule",
+ "Unprocessed Idle: "
+ << pIdle << " "
+ << (pIdle->GetDebugName() ? pIdle->GetDebugName() : "(nullptr)"));
}
}
pSchedulerData = pSchedulerData->mpNext;