Skip to content

Commit

Permalink
Fix NPE when search bar is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 21, 2024
1 parent a5d0ace commit 4f5ba91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ru/nsu/ccfit/zuev/osu/menu/SongMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,9 @@ public void selectBeatmap(final BeatmapInfo beatmapInfo, boolean reloadBG) {

Execution.mainThread(() -> {
ModMenu.getInstance().hide();
searchBar.dismiss();
if (searchBar != null) {
searchBar.dismiss();
}
});

game.startGame(beatmapInfo, null);
Expand Down

0 comments on commit 4f5ba91

Please sign in to comment.