diff --git a/imgui.cpp b/imgui.cpp index e8154e88..2d051037 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);