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

Bug: NPE in GeneralOptionsPane #49

Open
bitfist opened this issue Sep 3, 2024 · 0 comments
Open

Bug: NPE in GeneralOptionsPane #49

bitfist opened this issue Sep 3, 2024 · 0 comments

Comments

@bitfist
Copy link

bitfist commented Sep 3, 2024

I just noticed an NPE while saving the settings

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "String.trim()" because the return value of "javafx.scene.control.TextField.getText()" is null
	at org.markdownwriterfx.options.GeneralOptionsPane.save(GeneralOptionsPane.java:170)
	at org.markdownwriterfx.options.OptionsDialog.save(OptionsDialog.java:122)
	at org.markdownwriterfx.options.OptionsDialog.lambda$new$0(OptionsDialog.java:93)

addonsPathField.getText().trim() produces the NPE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant