From ca4732b752e3796af4994b46f7f895367360bf8d 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); + } } }); }