From 19937e28979fba27128096c08255d3bed355d667 Mon Sep 17 00:00:00 2001 From: yugecin Date: Mon, 2 Jul 2018 00:04:06 +0200 Subject: [PATCH] fix preventing a nullpointer, save a live --- src/itdelatrisu/opsu/states/MainMenu.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/itdelatrisu/opsu/states/MainMenu.java b/src/itdelatrisu/opsu/states/MainMenu.java index d86ec716..bcadc48d 100644 --- a/src/itdelatrisu/opsu/states/MainMenu.java +++ b/src/itdelatrisu/opsu/states/MainMenu.java @@ -339,13 +339,13 @@ public class MainMenu extends BaseOpsuState { ghostLogo.drawCentered(logo.getX(), logo.getY(), color); // now playing - if (OPTION_SHOW_UNICODE.state) { - Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.titleUnicode); - Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.artistUnicode); - } final Image np = GameImage.MUSIC_NOWPLAYING.getImage(); final String trackText; if (beatmap != null) { + if (OPTION_SHOW_UNICODE.state) { + Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.titleUnicode); + Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.artistUnicode); + } trackText = beatmap.getArtist() + ": " + beatmap.getTitle(); } else { trackText = "Loading...";