Merge remote-tracking branch 'origin/development'
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / datahandler / DataHandlerForTests.java
index 7c76508..39d8897 100644 (file)
@@ -272,8 +272,8 @@ public class DataHandlerForTests implements DataHandler {
                if (user == null) {
                        throw new IllegalArgumentException("User object must not be null!");
                }
-               if (findUser(user.getName()) != null) {
-                       userList.remove(findUser(user.getName()));
+               if (findUser(user.getUserName()) != null) {
+                       userList.remove(findUser(user.getUserName()));
                        userList.add(user);
                        return true;
                }