mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Fix NPE in TraxManager.fromItemId
This commit is contained in:
parent
09114ba977
commit
8c9faa56e6
@ -261,7 +261,7 @@ public class TraxManager implements Disposable {
|
||||
|
||||
public InteractionMusicDisc fromItemId(int itemId) {
|
||||
for (InteractionMusicDisc musicDisc : this.songs) {
|
||||
if (musicDisc.getId() == itemId) {
|
||||
if (musicDisc != null && musicDisc.getId() == itemId) {
|
||||
return musicDisc;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user