Policy TestSuite Enabled
[policy/engine.git] / ECOMP-REST / src / main / java / org / openecomp / policy / rest / adapter / ServiceListJson.java
index 81cfc03..532de1f 100644 (file)
@@ -39,15 +39,15 @@ public class ServiceListJson {
                this.name = value;
        }
        
-       public boolean equals(Object obj) 
-       {
-               ServiceListJson servobj=(ServiceListJson) obj;
-                if(this.getName().equals(servobj.getName()))
-               {
-                       return true;
-               }
-               return false;
-    }
+       public boolean equals(Object obj){
+               if(obj != null){
+                       ServiceListJson servobj=(ServiceListJson) obj;
+                       if(this.getName().equals(servobj.getName())){
+                               return true;
+                       }
+               }
+               return false;
+       }
        
         public int hashCode() {
                 if(name!=null){