Check for null mReadOnlyApnTypes.
Test: none Bug: 62247121 Change-Id: I6866bf2df8d4cb46dd75b94ab88c1e62e65ddda7
This commit is contained in:
@@ -1056,7 +1056,7 @@ public class ApnEditor extends SettingsPreferenceFragment
|
||||
if (errorMsg == null) {
|
||||
// if carrier does not allow editing certain apn types, make sure type does not include
|
||||
// those
|
||||
if (mReadOnlyApnTypes.length > 0
|
||||
if (!ArrayUtils.isEmpty(mReadOnlyApnTypes)
|
||||
&& apnTypesMatch(mReadOnlyApnTypes, mApnType.getText())) {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (String type : mReadOnlyApnTypes) {
|
||||
|
Reference in New Issue
Block a user