Fixes NPE bug in setProject

parent 8ae05bd1
......@@ -34,14 +34,13 @@ public class ProjectAssignment {
public void setProject(Project project) {
if (this.project != null) {
project.internalRemoveProjectAssignment(this);
this.project.internalRemoveProjectAssignment(this);
}
this.project = project;
if (this.project != null) {
this.project.internalAddProjectAssignment(this);
}
this.project = project;
}
public void setEmployee(Employee employee) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment