loottracker: null check

This commit is contained in:
Owain van Brakel
2019-11-07 09:26:42 +01:00
parent 96a3de0778
commit 6d3726b870

View File

@@ -598,7 +598,7 @@ class LootTrackerPanel extends PluginPanel
if (this.plugin.client.getGameState().equals(GameState.LOGGED_IN))
{
if (!(this.plugin.client.getLocalPlayer().getName().equals(records.get(i).getLocalUsername())))
if (this.plugin.client.getLocalPlayer() == null || !(this.plugin.client.getLocalPlayer().getName().equals(records.get(i).getLocalUsername())))
{
continue;
}