Skip to content

Commit

Permalink
NPE check in GuidedWaypointsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Sep 27, 2018
1 parent b29f292 commit 2254741
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@ public void run(GoalSelector selector) {
npc.getNavigator().getLocalParameters().addSingleUseCallback(new NavigatorCallback() {
@Override
public void onCompletion(CancelReason cancelReason) {
plan.update(npc);
if (plan != null) {
plan.update(npc);
}
}
});
}
Expand Down

0 comments on commit 2254741

Please sign in to comment.