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

Fixes #1916
// FREEBIE
This commit is contained in:
Jake McGinty 2014-09-14 17:45:57 -07:00
parent 609e69a801
commit 7316f17674

View File

@ -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;