From bdfcfc4fc25fc680cc22dd5a149df7a6ad58f9e7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 16 Jun 2026 05:43:25 +0530 Subject: [PATCH] Another stab at #10152 --- glfw/cocoa_window.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 006d01083..b586100f9 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -96,7 +96,8 @@ polymorphic_string_as_utf8(id string) { characters = [string string]; else characters = (NSString*) string; - return [characters UTF8String]; + const char* ans = [characters UTF8String]; + return ans ? ans : "(nil)"; } static bool