Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Fixed null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Petschko committed Mar 15, 2021
1 parent f96979d commit d5e25ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/petschko/rpgmakermv/decrypt/gui/Menu.java
Expand Up @@ -234,8 +234,10 @@ void enableOnRPGProject(boolean enable, GUI gui) {
boolean hasEncryptedFiles = false;
boolean hasResourceFiles = false;
if(gui != null) {
hasEncryptedFiles = gui.getRpgProject().getEncryptedFiles().size() > 0 && enable;
hasResourceFiles = gui.getRpgProject().getResourceFiles().size() > 0 && enable;
if(gui.getRpgProject() != null) {
hasEncryptedFiles = gui.getRpgProject().getEncryptedFiles().size() > 0 && enable;
hasResourceFiles = gui.getRpgProject().getResourceFiles().size() > 0 && enable;
}
}

this.openRPGDirExplorer.setEnabled(enable);
Expand Down

0 comments on commit d5e25ff

Please sign in to comment.