From 5471656990723ff56a4e90aed67f1d4fa7415631 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Mon, 24 Jul 2017 18:10:06 +0300 Subject: [PATCH] Fix NPE --- .../osmand/plus/activities/ContributionVersionActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java index e40c6f0557..81bb2ccb1d 100644 --- a/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/ContributionVersionActivity.java @@ -295,7 +295,9 @@ public class ContributionVersionActivity extends OsmandListActivity { this.activity.runOnUiThread(new Runnable() { @Override public void run() { - activity.endThreadOperation(operationId, e); + if (activity != null) { + activity.endThreadOperation(operationId, e); + } } }); }