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

Jan-Marek Glogowski (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 26 23:02:01 UTC 2021


 vcl/source/app/svapp.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 0c7e8ef07fe9ba7ebc95fdeb5f58275decb4f0fc
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Tue Jan 26 22:18:16 2021 +0100
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Wed Jan 27 00:01:15 2021 +0100

    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 at fbihome.de>

diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 69687bd8a6f7..aa3dbb0a18b3 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -504,8 +504,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;


More information about the Libreoffice-commits mailing list