Skip to content

Commit

Permalink
fix: 添加一个空指针判断
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSkidder committed Jul 15, 2024
1 parent 60fe419 commit 4eaa765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/java/top/fpsmaster/ui/click/music/MusicPanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ object MusicPanel {
minutes.toString() + ":" + seconds + "/" + duration.toInt() + ":" + ((duration - duration.toInt()) * 60).toInt()
}
s16b.drawString(progress, x + 30, y + height - 14, FPSMaster.theme.textColorDescription.rgb)
if ((MusicPlayer.playList.getCurrent() as Music).isLoadedImage) Render2DUtils.drawImage(
if (MusicPlayer.playList.getCurrent() !=null && (MusicPlayer.playList.getCurrent() as Music).isLoadedImage) Render2DUtils.drawImage(
ResourceLocation("music/netease/" + (MusicPlayer.playList.getCurrent() as Music).id),
x + 5,
y + height - 24,
Expand Down

0 comments on commit 4eaa765

Please sign in to comment.