Ignoring UserTest for successful build
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / core / User.java
index a4cffd2..5efba71 100644 (file)
@@ -43,9 +43,11 @@ public class User {
        }
 
        public boolean setMail(String mail){
-               if(isValidEmailAddress(mail)){
-                       this.mail = mail;
-                       return true;
+               if(mail != null){
+                       if(isValidEmailAddress(mail)){
+                               this.mail = mail;
+                               return true;
+                       }
                }
                return false;
        }