|
@@ -4,6 +4,7 @@ import android.app.Fragment;
|
|
import android.graphics.Color;
|
|
import android.graphics.Color;
|
|
import android.location.Location;
|
|
import android.location.Location;
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
|
+import android.util.Log;
|
|
import android.view.InflateException;
|
|
import android.view.InflateException;
|
|
import android.view.LayoutInflater;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.View;
|
|
@@ -45,7 +46,7 @@ public class ThreatMapFragment extends Fragment implements GoogleMap.OnInfoWindo
|
|
private static GoogleMap sMap = null;
|
|
private static GoogleMap sMap = null;
|
|
private static View sView = null;
|
|
private static View sView = null;
|
|
|
|
|
|
- private HashMap<String, String> sMarkerIDToSSID = new HashMap<String, String>();
|
|
|
|
|
|
+ private static HashMap<String, String> sMarkerIDToSSID = new HashMap<String, String>();
|
|
|
|
|
|
private LocationClient mLocationClient;
|
|
private LocationClient mLocationClient;
|
|
private static final LocationRequest REQUEST = LocationRequest.create()
|
|
private static final LocationRequest REQUEST = LocationRequest.create()
|
|
@@ -81,6 +82,11 @@ public class ThreatMapFragment extends Fragment implements GoogleMap.OnInfoWindo
|
|
if (recordOverviewFragment != null) {
|
|
if (recordOverviewFragment != null) {
|
|
String ssid = sMarkerIDToSSID.get(marker.getId());
|
|
String ssid = sMarkerIDToSSID.get(marker.getId());
|
|
recordOverviewFragment.showDetailsForSSID(getActivity(), ssid);
|
|
recordOverviewFragment.showDetailsForSSID(getActivity(), ssid);
|
|
|
|
+
|
|
|
|
+ if (ssid == null)
|
|
|
|
+ Log.i("SSID", "nullptr exception!!!");
|
|
|
|
+ else
|
|
|
|
+ Log.i("SSID", ssid);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|