Fix NPE
This commit is contained in:
parent
5472efe072
commit
7a7d2b325a
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ public class CurrentPositionHelper {
|
|||
}
|
||||
};
|
||||
calculatingThread = app.getRoutingHelper().startTaskInRouteThreadIfPossible(run);
|
||||
} else if (!calcThread.isAlive()) {
|
||||
} else if (calcThread != null && !calcThread.isAlive()) {
|
||||
calculatingThread = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue