From 240ddb49623eace615de10d9c51238180623b79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Makovi=C4=8Dka?= Date: Fri, 23 Dec 2016 16:47:19 +0100 Subject: [PATCH] Fix NPE --- .../net/osmand/plus/notifications/NavigationNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/notifications/NavigationNotification.java b/OsmAnd/src/net/osmand/plus/notifications/NavigationNotification.java index 1c1985f372..babf2c9242 100644 --- a/OsmAnd/src/net/osmand/plus/notifications/NavigationNotification.java +++ b/OsmAnd/src/net/osmand/plus/notifications/NavigationNotification.java @@ -235,7 +235,7 @@ public class NavigationNotification extends OsmandNotification { int smallIconViewId = app.getResources().getIdentifier("right_icon", "id", android.R.class.getPackage().getName()); if (smallIconViewId != 0) { - if (notification.contentIntent != null) + if (notification.contentView != null) notification.contentView.setViewVisibility(smallIconViewId, View.INVISIBLE); if (notification.headsUpContentView != null)