Merge pull request #5847 from deathbeam/fix-npe-in-miscellania
Fix NPE in Miscellania plugin on DC
This commit is contained in:
@@ -123,7 +123,8 @@ public class KingdomPlugin extends Plugin
|
|||||||
|
|
||||||
private boolean isInKingdom()
|
private boolean isInKingdom()
|
||||||
{
|
{
|
||||||
return KINGDOM_REGION.contains(client.getLocalPlayer().getWorldLocation().getRegionID());
|
return client.getLocalPlayer() != null
|
||||||
|
&& KINGDOM_REGION.contains(client.getLocalPlayer().getWorldLocation().getRegionID());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasCompletedQuest()
|
private boolean hasCompletedQuest()
|
||||||
|
|||||||
Reference in New Issue
Block a user