This commit is contained in:
Filip Izydorczyk 2021-01-20 16:11:43 +01:00
parent a304e25629
commit 0eccbfe9a3

View File

@ -27,7 +27,9 @@ public class ExchangeResponse {
this.id = exchange.getId();
this.ownedAssignment = new GroupDefaultResponse(exchange.getOwnedAssignment().getGroup());
this.desiredGroup = new GroupDefaultResponse(exchange.getDesiredAssignment());
this.courseName = exchange.getOwnedAssignment().getGroup().getCourseId().getName();
this.courseName = exchange.getOwnedAssignment().getGroup().getCourseId() != null
? exchange.getOwnedAssignment().getGroup().getCourseId().getName()
: "";
}
/**