(no commit message)
[utils] / security / impl / src / main / java / org / wamblee / usermgt / Group.java
index 697f1b5b343a75a84b6b0905d3f526df7bddc262..ad3e3ec2edcab6d4ca14e444660f3cc097920d48 100644 (file)
@@ -116,6 +116,9 @@ public class Group implements Serializable, Comparable {
      */
     @Override
     public boolean equals(Object aGroup) {
+        if (aGroup == null) {
+            return false;
+        }
         if (!(aGroup instanceof Group)) {
             return false;
         }
@@ -141,10 +144,14 @@ public class Group implements Serializable, Comparable {
     public int compareTo(Object aGroup) {
         return name.compareTo(((Group) aGroup).name);
     }
-    
+
     public Long getPrimaryKey() {
         return primaryKey;
     }
+    
+    public void setPrimaryKey(Long aKey) { 
+        primaryKey = aKey;
+    }
 
     /*
      * (non-Javadoc)