Fix possible npe
This commit is contained in:
parent
8a63a0ce53
commit
9e6826760a
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ public class MapQuickActionLayer extends OsmandMapLayer implements QuickActionRe
|
||||||
canvas.translate(box.getCenterPixelX() - contextMarker.getWidth() / 2, box.getCenterPixelY() - contextMarker.getHeight());
|
canvas.translate(box.getCenterPixelX() - contextMarker.getWidth() / 2, box.getCenterPixelY() - contextMarker.getHeight());
|
||||||
contextMarker.draw(canvas);
|
contextMarker.draw(canvas);
|
||||||
}
|
}
|
||||||
if (this.nightMode != nightMode) {
|
if (this.nightMode != nightMode && currentWidgetState != null) {
|
||||||
this.nightMode = nightMode;
|
this.nightMode = nightMode;
|
||||||
updateQuickActionButton(currentWidgetState);
|
updateQuickActionButton(currentWidgetState);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue