NPE check in GuidedWaypointsProvider

This commit is contained in:
fullwall 2018-09-27 20:25:52 +08:00
parent b29f292537
commit 2254741d09

View File

@ -260,7 +260,9 @@ public class GuidedWaypointProvider implements EnumerableWaypointProvider {
npc.getNavigator().getLocalParameters().addSingleUseCallback(new NavigatorCallback() {
@Override
public void onCompletion(CancelReason cancelReason) {
plan.update(npc);
if (plan != null) {
plan.update(npc);
}
}
});
}