Merge pull request #1917 from mcginty/mccmnc-crash

don't crash if we can't get an mccmnc
This commit is contained in:
Moxie Marlinspike 2014-09-15 09:32:28 -07:00
commit e5bad2746f

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;