fix preventing a nullpointer, save a live
This commit is contained in:
parent
5f2c9c5291
commit
19937e2897
|
@ -339,13 +339,13 @@ public class MainMenu extends BaseOpsuState {
|
||||||
ghostLogo.drawCentered(logo.getX(), logo.getY(), color);
|
ghostLogo.drawCentered(logo.getX(), logo.getY(), color);
|
||||||
|
|
||||||
// now playing
|
// now playing
|
||||||
|
final Image np = GameImage.MUSIC_NOWPLAYING.getImage();
|
||||||
|
final String trackText;
|
||||||
|
if (beatmap != null) {
|
||||||
if (OPTION_SHOW_UNICODE.state) {
|
if (OPTION_SHOW_UNICODE.state) {
|
||||||
Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.titleUnicode);
|
Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.titleUnicode);
|
||||||
Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.artistUnicode);
|
Fonts.loadGlyphs(Fonts.MEDIUM, beatmap.artistUnicode);
|
||||||
}
|
}
|
||||||
final Image np = GameImage.MUSIC_NOWPLAYING.getImage();
|
|
||||||
final String trackText;
|
|
||||||
if (beatmap != null) {
|
|
||||||
trackText = beatmap.getArtist() + ": " + beatmap.getTitle();
|
trackText = beatmap.getArtist() + ": " + beatmap.getTitle();
|
||||||
} else {
|
} else {
|
||||||
trackText = "Loading...";
|
trackText = "Loading...";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user