bug 886921 - Crash [@ org.mozilla.gecko.GeckoApp.getCellInfo(GeckoApp.java:2336)] r=mfinkle

This commit is contained in:
Brad Lassey 2013-06-25 14:53:43 -04:00
parent 796ec32b7d
commit 7437e16b8c

View File

@ -2335,10 +2335,12 @@ abstract public class GeckoApp
break;
}
String mcc_mnc = tm.getNetworkOperator();
mcc = mcc_mnc.substring(0, 3);
mnc = mcc_mnc.substring(3);
obj.put("mcc", mcc);
obj.put("mnc", mnc);
if (mcc_mnc.length() > 3) {
mcc = mcc_mnc.substring(0, 3);
mnc = mcc_mnc.substring(3);
obj.put("mcc", mcc);
obj.put("mnc", mnc);
}
obj.put("asu", mSignalStrenth);
} catch(JSONException jsonex) {}
cellInfo.put(obj);