Fix for null pointer exception
This commit is contained in:
parent
96b95a2908
commit
fe6bdfb51a
1 changed files with 4 additions and 4 deletions
|
@ -34,12 +34,12 @@ import java.text.MessageFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class OsmEditUploadListenerHelper implements OsmEditsUploadListener {
|
public class OsmEditsUploadListenerHelper implements OsmEditsUploadListener {
|
||||||
public static final String TAG = "OsmEditUploadListenerHe";
|
public static final String TAG = "OsmEditUploadListenerHe";
|
||||||
private final FragmentActivity activity;
|
private final FragmentActivity activity;
|
||||||
private final String numberFormat;
|
private final String numberFormat;
|
||||||
|
|
||||||
public OsmEditUploadListenerHelper(FragmentActivity activity, String numberFormat) {
|
public OsmEditsUploadListenerHelper(FragmentActivity activity, String numberFormat) {
|
||||||
this.activity = activity;
|
this.activity = activity;
|
||||||
this.numberFormat = numberFormat;
|
this.numberFormat = numberFormat;
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ public class OsmEditUploadListenerHelper implements OsmEditsUploadListener {
|
||||||
OpenstreetmapRemoteUtil remotepoi = new OpenstreetmapRemoteUtil(activity);
|
OpenstreetmapRemoteUtil remotepoi = new OpenstreetmapRemoteUtil(activity);
|
||||||
OsmBugsRemoteUtil remotebug = new OsmBugsRemoteUtil((OsmandApplication) activity.getApplication());
|
OsmBugsRemoteUtil remotebug = new OsmBugsRemoteUtil((OsmandApplication) activity.getApplication());
|
||||||
|
|
||||||
OsmEditUploadListenerHelper helper = new OsmEditUploadListenerHelper(activity,
|
OsmEditsUploadListenerHelper helper = new OsmEditsUploadListenerHelper(activity,
|
||||||
activity.getResources().getString(R.string.local_openstreetmap_were_uploaded));
|
activity.getResources().getString(R.string.local_openstreetmap_were_uploaded));
|
||||||
|
|
||||||
Resources resources = activity.getResources();
|
Resources resources = activity.getResources();
|
||||||
|
@ -191,7 +191,7 @@ public class OsmEditUploadListenerHelper implements OsmEditsUploadListener {
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
OsmEditUploadListenerHelper
|
OsmEditsUploadListenerHelper
|
||||||
.showUploadItemsProgressDialog(
|
.showUploadItemsProgressDialog(
|
||||||
UploadingMultipleErrorDialogFragment.this,
|
UploadingMultipleErrorDialogFragment.this,
|
||||||
points);
|
points);
|
Loading…
Reference in a new issue