From 783c99516a92faced0d2d5b030ef862d64b19c48 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 4 Mar 2020 19:25:57 +0100 Subject: [PATCH] AK: LogStream should handle being passed a null const char* --- AK/LogStream.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/LogStream.h b/AK/LogStream.h index e0fa4e9ce3..63e728d960 100644 --- a/AK/LogStream.h +++ b/AK/LogStream.h @@ -85,6 +85,8 @@ public: inline const LogStream& operator<<(const LogStream& stream, const char* value) { + if (!value) + return stream << "(null)"; int length = 0; const char* p = value; while (*(p++))