music plugin: add null check to SettingsSideSlider icon on shutdown

This commit is contained in:
RuneLogApp
2021-05-09 17:51:36 -04:00
committed by GitHub
parent 6dca841c87
commit 038ba21649
@@ -599,7 +599,10 @@ public class MusicPlugin extends Plugin
handle.setSpriteId(SpriteID.SETTINGS_SLIDER_HANDLE_BLUE);
}
this.icon.setOnOpListener((Object[]) null);
if (this.icon != null)
{
this.icon.setOnOpListener((Object[]) null);
}
Widget root = client.getWidget(this.root);
if (root != null)