Fix for NPE in SDNIP

Change-Id: I368db30e40b2081e92901e413f8c87e9db98e086
diff --git a/apps/sdnip/src/main/java/org/onosproject/sdnip/SdnIp.java b/apps/sdnip/src/main/java/org/onosproject/sdnip/SdnIp.java
index e80dd3d..ff99708 100644
--- a/apps/sdnip/src/main/java/org/onosproject/sdnip/SdnIp.java
+++ b/apps/sdnip/src/main/java/org/onosproject/sdnip/SdnIp.java
@@ -35,6 +35,8 @@
 import org.onosproject.routing.config.RoutingConfigurationService;
 import org.slf4j.Logger;
 
+import java.util.Objects;
+
 import static org.slf4j.LoggerFactory.getLogger;
 
 /**
@@ -152,8 +154,7 @@
             if (!event.subject().topic().equals(appId.name())) {
                 return;         // Not our topic: ignore
             }
-            if (!event.subject().leader().equals(
-                        localControllerNode.id())) {
+            if (Objects.equals(event.subject().leader(), localControllerNode.id())) {
                 return;         // The event is not about this instance: ignore
             }