Skip to content

Commit

Permalink
[API] Fix inputText with resizable ImString crashes if the `ImGui…
Browse files Browse the repository at this point in the history
…InputTextCallback` is null

fixes #158
  • Loading branch information
SpaiR committed Mar 1, 2023
1 parent e1789c8 commit bf92f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui-binding/src/main/java/imgui/ImGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -3147,7 +3147,7 @@ private static boolean preInputText(boolean multiline, String label, String hint
userData.textInputData = &textInputData;
userData.env = env;
userData.allowedChars = allowedChars;
userData.handler = &callback;
userData.handler = callback != NULL ? &callback : NULL;
bool valueChanged;
Expand Down

0 comments on commit bf92f04

Please sign in to comment.