From 23d156908d4afb437d645245fa06d10a3216dd31 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 19 Aug 2014 12:27:34 +0100 Subject: [PATCH] Added an assertion --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index e8154e886..2d0510379 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end) if (window->SkipItems) return; + IM_ASSERT(text != NULL); const char* text_begin = text; if (text_end == NULL) text_end = text + strlen(text);