Skip to content

Commit

Permalink
don't crash if we can't get an mccmnc
Browse files Browse the repository at this point in the history
Fixes signalapp#1916
// FREEBIE
  • Loading branch information
mcginty committed Sep 15, 2014
1 parent 609e69a commit 7316f17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/thoughtcrime/securesms/database/ApnDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ public MmsCommunication.MmsConnectionParameters getMmsConnectionParameters(final
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;

Expand Down

0 comments on commit 7316f17

Please sign in to comment.