mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
NPE check
This commit is contained in:
parent
de821df98d
commit
942e7ae9ed
@ -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