don't crash if we can't get an mccmnc

Fixes #1916
// FREEBIE
pull/1/head
Jake McGinty 11 years ago
parent 609e69a801
commit 7316f17674

@ -95,7 +95,10 @@ public class ApnDatabase {
final String apn)
{
if (mccmnc == null) throw new InvalidParameterException("mccmnc must not be null");
if (mccmnc == null) {
Log.w(TAG, "mccmnc was null, returning null");
return null;
}
Cursor cursor = null;

Loading…
Cancel
Save