I have a sentinel that is spawned with the waypoint provider "wander" and then add a behavior to the NPC for some long range pathfinding. I take over the NPC movement and set waypoint wander to null (used to be "none" in older builds), and use setMoveDestination to guide it through the path of points. Once I am done, I try to put the NPC back into wander mode and it just freezes in place. There is an error with the waypoint provider when I set it to null:
[01:47:03] [Server thread/INFO]: [Citizens] Exception while updating 25: Cannot invoke "net.citizensnpcs.trait.waypoint.WaypointProvider.isPaused()" because the return value of "net.citizensnpcs.trait.waypoint.Waypoints.getCurrentProvider()" is null.
[01:47:03] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "net.citizensnpcs.trait.waypoint.WaypointProvider.isPaused()" because the return value of "net.citizensnpcs.trait.waypoint.Waypoints.getCurrentProvider()" is null
[01:47:03] [Server thread/WARN]: at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.pauseWaypoints(SentinelTrait.java:1467)
[01:47:03] [Server thread/WARN]: at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.runUpdate(SentinelTrait.java:1603)
[01:47:03] [Server thread/WARN]: at Sentinel-2.9.2-SNAPSHOT-b529.jar//org.mcmonkey.sentinel.SentinelTrait.run(SentinelTrait.java:1829)
[01:47:03] [Server thread/WARN]: at Citizens-2.0.41-b4040.jar//net.citizensnpcs.api.npc.AbstractNPC.update(AbstractNPC.java:484)
[01:47:03] [Server thread/WARN]: at Citizens-2.0.41-b4040.jar//net.citizensnpcs.npc.CitizensNPC.update(CitizensNPC.java:487)
[01:47:03] [Server thread/WARN]: at Citizens-2.0.41-b4040.jar//net.citizensnpcs.nms.v1_21_R7.entity.EntityHumanNPC.tick(EntityHumanNPC.java:385)
[01:47:03] [Server thread/WARN]: at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1450)
...