tearsofguthix: fix npe (#1333)

This commit is contained in:
Justin
2019-08-15 12:45:18 +10:00
committed by Ganom
parent 3f0532b5bf
commit a94fffbec5

View File

@@ -112,7 +112,7 @@ public class TearsOfGuthixPlugin extends Plugin
streams.clear();
}
if (event.getGameState() == GameState.LOGGED_IN)
if (event.getGameState() == GameState.LOGGED_IN && client.getLocalPlayer() != null)
{
if (client.getLocalPlayer().getWorldLocation().getRegionID() == TOG_REGION)
{