mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-28 05:35:45 +01:00
NPE check
This commit is contained in:
parent
ca9c7056e1
commit
1d20cd17d1
@ -75,6 +75,8 @@ public class GenericWaypointCallback extends NavigationCallback {
|
||||
|
||||
public void onProviderChanged() {
|
||||
itr = provider.iterator();
|
||||
if (ai == null)
|
||||
return;
|
||||
dest = itr.hasNext() ? itr.next().getLocation() : null;
|
||||
if (dest != null) {
|
||||
ai.setDestination(dest);
|
||||
|
Loading…
Reference in New Issue
Block a user