Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputText with resizable ImString crashes if the ImGuiInputTextCallback is null. #158

Closed
brunopj1 opened this issue Feb 26, 2023 · 0 comments
Labels
api Connected with imgui-java API bug Something isn't working

Comments

@brunopj1
Copy link
Contributor

I'm trying to render an InputText with a resizable buffer.
If I call ImGui.inputText("input", str, ImGuiInputTextFlags.CallbackResize), when I write in the input field I get a NullPointerException coming from a native method.
However, if I set the ImGuiInputTextCallback, the string gets resized correctly, even if the callback doesn't do anything.

Is this an expected behavior?

@SpaiR SpaiR added bug Something isn't working api Connected with imgui-java API labels Feb 27, 2023
@SpaiR SpaiR closed this as completed in bf92f04 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Connected with imgui-java API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants