avoided null check when comparing

revert-dabc3590
ayyoob 8 years ago
parent 9eec100535
commit 95ca419d17

@ -45,7 +45,7 @@ public class XmppConfig {
List<PushNotificationConfig.Property> properties = deviceManagementConfiguration.getPushNotificationConfig() List<PushNotificationConfig.Property> properties = deviceManagementConfiguration.getPushNotificationConfig()
.getProperties(); .getProperties();
String provider = deviceManagementConfiguration.getPushNotificationConfig().getPushNotificationProvider(); String provider = deviceManagementConfiguration.getPushNotificationConfig().getPushNotificationProvider();
if (provider.equals("XMPP")) { if ("XMPP".equals(provider)) {
enabled = true; enabled = true;
} }
if (enabled) { if (enabled) {

Loading…
Cancel
Save