[Libreoffice-commits] online.git: loolwsd/LOOLKit.cpp

Tor Lillqvist tml at collabora.com
Wed Mar 2 14:42:58 UTC 2016


 loolwsd/LOOLKit.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bf63df227b63c7dcdbdd4439c90d0c37939d8261
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Mar 2 16:41:46 2016 +0200

    The payload can be null
    
    It is always null at least for LOK_CALLBACK_STATUS_INDICATOR_FINISH.

diff --git a/loolwsd/LOOLKit.cpp b/loolwsd/LOOLKit.cpp
index e7cf26b..31b659d 100644
--- a/loolwsd/LOOLKit.cpp
+++ b/loolwsd/LOOLKit.cpp
@@ -527,7 +527,7 @@ private:
         Document* self = reinterpret_cast<Document*>(pData);
         Log::trace() << "Callback "
                      << KitCallbackTypeToString(nType)
-                     << " [" << pPayload << "]." << Log::end;
+                     << " [" << (pPayload ? pPayload : "") << "]." << Log::end;
 
         if (self)
         {


More information about the Libreoffice-commits mailing list