Skip to content

Commit

Permalink
Merge "MMS app: fix crash when MMSC setting is NULL" into ics
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperb1iss authored and Gerrit Code Review committed Aug 10, 2012
2 parents cc8e5ab + a5f8460 commit 6affc39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/com/android/mms/transaction/TransactionSettings.java
Expand Up @@ -84,8 +84,13 @@ public TransactionSettings(Context context, String apnName) {
// Read values from APN settings
if (isValidApnType(cursor.getString(COLUMN_TYPE), Phone.APN_TYPE_MMS)) {
sawValidApn = true;
mServiceCenter = NetworkUtils.trimV4AddrZeros(
cursor.getString(COLUMN_MMSC).trim());

String MMSC = cursor.getString(COLUMN_MMSC);
if (MMSC == null) {
continue;
}

mServiceCenter = NetworkUtils.trimV4AddrZeros(MMSC.trim());
mProxyAddress = NetworkUtils.trimV4AddrZeros(
cursor.getString(COLUMN_MMSPROXY));
if (isProxySet()) {
Expand Down

0 comments on commit 6affc39

Please sign in to comment.