From 7316f176747289a509abfe7493bf9fec385df339 Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Sun, 14 Sep 2014 17:45:57 -0700 Subject: [PATCH] don't crash if we can't get an mccmnc Fixes #1916 // FREEBIE --- src/org/thoughtcrime/securesms/database/ApnDatabase.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/ApnDatabase.java b/src/org/thoughtcrime/securesms/database/ApnDatabase.java index d388b477e7..c839be415a 100644 --- a/src/org/thoughtcrime/securesms/database/ApnDatabase.java +++ b/src/org/thoughtcrime/securesms/database/ApnDatabase.java @@ -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;