Browse Source

Added an assertion

ocornut 11 years ago
parent
commit
23d156908d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -2495,6 +2495,7 @@ void TextUnformatted(const char* text, const char* text_end)
     if (window->SkipItems)
     if (window->SkipItems)
         return;
         return;
 
 
+	IM_ASSERT(text != NULL);
     const char* text_begin = text;
     const char* text_begin = text;
     if (text_end == NULL)
     if (text_end == NULL)
         text_end = text + strlen(text);
         text_end = text + strlen(text);