Merge "Fix NPE in ComponentNameValidator" into pi-dev
am: b105913098
Change-Id: I9725217151634a66d7cd3dc0e80acb5f78f15c39
This commit is contained in:
@@ -79,7 +79,7 @@ public class SettingsValidators {
|
||||
public static final Validator COMPONENT_NAME_VALIDATOR = new Validator() {
|
||||
@Override
|
||||
public boolean validate(String value) {
|
||||
return ComponentName.unflattenFromString(value) != null;
|
||||
return value != null && ComponentName.unflattenFromString(value) != null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user