[API] Fix inputText with resizable ImString crashes if the ImGuiInputTextCallback is null

fixes #158
This commit is contained in:
SpaiR committed 2023-03-01 11:01:09 +02:00
1 parent e1789c80fa
commit bf92f04c21
1 file changed
+1 -1
+1 -1
View File
@@ -3147,7 +3147,7 @@ public class ImGui {
userData.textInputData = &textInputData;
userData.env = env;
userData.allowedChars = allowedChars;
userData.handler = &callback;
userData.handler = callback != NULL ? &callback : NULL;
bool valueChanged;