mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 01:07:47 +00:00
Merge pull request #1917 from mcginty/mccmnc-crash
don't crash if we can't get an mccmnc
This commit is contained in:
commit
e5bad2746f
@ -95,7 +95,10 @@ public class ApnDatabase {
|
|||||||
final String apn)
|
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;
|
Cursor cursor = null;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user