Skip to content

Commit bf92f04

Browse files
committed
[API] Fix inputText with resizable ImString crashes if the ImGuiInputTextCallback is null
fixes #158
1 parent e1789c8 commit bf92f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui-binding/src/main/java/imgui/ImGui.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3147,7 +3147,7 @@ private static boolean preInputText(boolean multiline, String label, String hint
31473147
userData.textInputData = &textInputData;
31483148
userData.env = env;
31493149
userData.allowedChars = allowedChars;
3150-
userData.handler = &callback;
3150+
userData.handler = callback != NULL ? &callback : NULL;
31513151
31523152
bool valueChanged;
31533153

0 commit comments

Comments
 (0)