Fix npe in parking plugin
This commit is contained in:
parent
075256f41b
commit
49e73ad305
1 changed files with 27 additions and 25 deletions
|
@ -440,8 +440,9 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
|||
|
||||
@Override
|
||||
public boolean updateInfo(DrawSettings drawSettings) {
|
||||
if (parkingLayer != null) {
|
||||
LatLon parkingPoint = parkingLayer.getParkingPoint();
|
||||
if( parkingPoint != null && !map.getRoutingHelper().isFollowingMode()) {
|
||||
if (parkingPoint != null && !map.getRoutingHelper().isFollowingMode()) {
|
||||
OsmandMapTileView view = map.getMapView();
|
||||
int d = 0;
|
||||
if (d == 0) {
|
||||
|
@ -469,6 +470,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
|||
setText(null, null);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue