tests repair
This commit is contained in:
parent
b740562e9d
commit
0103a028b4
@ -88,7 +88,8 @@ public class ExchangeController extends TokenBasedController {
|
|||||||
final Assignment assignmentInstance = assignment.get();
|
final Assignment assignmentInstance = assignment.get();
|
||||||
final Groups groupInstance = group.get();
|
final Groups groupInstance = group.get();
|
||||||
|
|
||||||
if (assignmentInstance.getGroup().getCourseId().getId() != groupInstance.getCourseId().getId()) {
|
if (assignmentInstance.getGroup().getCourseId() != null
|
||||||
|
&& assignmentInstance.getGroup().getCourseId().getId() != groupInstance.getCourseId().getId()) {
|
||||||
return new ResponseEntity<>("You can performe exchange only within one course.", HttpStatus.BAD_REQUEST);
|
return new ResponseEntity<>("You can performe exchange only within one course.", HttpStatus.BAD_REQUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user