Skip to content

Conversation

@nihalsingh373
Copy link

@nihalsingh373 nihalsingh373 commented Oct 30, 2025

This pull request fixes a potential NullPointerException that occurs when trying to use “Save as” or “Decompile and save” in Bytecode Viewer.

Cause:
The JFileChooser initialization could fail due to theme delegate issues in DarkLaf, leading to a null reference during export.

Fix:
Added a defensive null-check in FileChooser.create() to ensure the program safely handles the case where JFileChooser fails to initialize, instead of crashing.

Impact:

Prevents application crashes during export on certain Windows setups.

Improves stability for users on Java 21 and DarkLaf theme configurations.

Linked Issue:
Fixes #559

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

Successfully merging this pull request may close these issues.

Can't export in any format

1 participant