From fe6bdfb51a20183335e03cd375f5df6d17074053 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Thu, 30 Jul 2015 21:25:05 +0300 Subject: [PATCH] Fix for null pointer exception --- ...tenerHelper.java => OsmEditsUploadListenerHelper.java} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename OsmAnd/src/net/osmand/plus/osmedit/{OsmEditUploadListenerHelper.java => OsmEditsUploadListenerHelper.java} (97%) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditUploadListenerHelper.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java similarity index 97% rename from OsmAnd/src/net/osmand/plus/osmedit/OsmEditUploadListenerHelper.java rename to OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java index ff04a465a2..0564a06b8f 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditUploadListenerHelper.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java @@ -34,12 +34,12 @@ import java.text.MessageFormat; import java.util.ArrayList; import java.util.Map; -public class OsmEditUploadListenerHelper implements OsmEditsUploadListener { +public class OsmEditsUploadListenerHelper implements OsmEditsUploadListener { public static final String TAG = "OsmEditUploadListenerHe"; private final FragmentActivity activity; private final String numberFormat; - public OsmEditUploadListenerHelper(FragmentActivity activity, String numberFormat) { + public OsmEditsUploadListenerHelper(FragmentActivity activity, String numberFormat) { this.activity = activity; this.numberFormat = numberFormat; } @@ -103,7 +103,7 @@ public class OsmEditUploadListenerHelper implements OsmEditsUploadListener { OpenstreetmapRemoteUtil remotepoi = new OpenstreetmapRemoteUtil(activity); 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)); Resources resources = activity.getResources(); @@ -191,7 +191,7 @@ public class OsmEditUploadListenerHelper implements OsmEditsUploadListener { new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { - OsmEditUploadListenerHelper + OsmEditsUploadListenerHelper .showUploadItemsProgressDialog( UploadingMultipleErrorDialogFragment.this, points);