NPE in Registration constructor when name is null
Found in Version:
#6 Updated by Andreas Müller almost 3 years ago
- Assignee changed from Andreas Müller to Andreas Kohlbecker
Looks like there were still some bugs in setName().
- if name was null there was still an NPE in the last line
- existing registration was removed from name.getRegistrations but should be removed from this.name.getRegistrations()
- maybe some more
I adapted the method and wrote test to proof correct behavior.