Merge pull request #4195 from osmandapp/fix_npe_23_line

Fix NPE
This commit is contained in:
vshcherb 2017-07-24 17:33:36 +02:00 committed by GitHub
commit ec614dbb53

View file

@ -295,8 +295,10 @@ public class ContributionVersionActivity extends OsmandListActivity {
this.activity.runOnUiThread(new Runnable() { this.activity.runOnUiThread(new Runnable() {
@Override @Override
public void run() { public void run() {
if (activity != null) {
activity.endThreadOperation(operationId, e); activity.endThreadOperation(operationId, e);
} }
}
}); });
} }
} }