Merge "Fix an incorrect null check"

This commit is contained in:
Treehugger Robot
2018-07-20 12:41:17 +00:00
committed by Gerrit Code Review

View File

@@ -435,7 +435,7 @@ public class NotificationManagerService extends SystemService {
}
String defaultDndAccess = getContext().getResources().getString(
com.android.internal.R.string.config_defaultDndAccessPackages);
if (defaultListenerAccess != null) {
if (defaultDndAccess != null) {
for (String whitelisted :
defaultDndAccess.split(ManagedServices.ENABLED_SERVICES_SEPARATOR)) {
try {