Skip to content

Commit

Permalink
Fix NPE when saving while RunMode is active
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Sep 3, 2024
1 parent cbd7168 commit 0e26dde
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2458,8 +2458,6 @@ private void saveProfile() {
}

private void saveProfile(File file, final boolean saveAsLastProfile) {
input.reset();

if (!file.getName().toLowerCase(Locale.ROOT).endsWith(PROFILE_FILE_SUFFIX)) {
file = new File(file.getAbsoluteFile() + PROFILE_FILE_SUFFIX);
}
Expand Down

0 comments on commit 0e26dde

Please sign in to comment.