Skip to content

Commit

Permalink
fix(pub-period-migration) fix linkOrUnlinkSubjects method in the Inst…
Browse files Browse the repository at this point in the history
…anceService.
  • Loading branch information
SvitlanaKovalova1 committed Jan 10, 2025
1 parent 05395b3 commit 8c6e050
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private Promise<Response> putInstance(Instance newInstance, String instanceId) {
private Future<Void> linkOrUnlinkSubjects(Conn conn, Instance newInstance, Instance oldInstance) {
var instanceId = newInstance.getId();

if (newInstance.getSubjects().isEmpty()) {
if (newInstance.getSubjects() == null || newInstance.getSubjects().isEmpty()) {
return Future.all(
instanceRepository.unlinkInstanceFromSubjectSource(conn, instanceId),
instanceRepository.unlinkInstanceFromSubjectType(conn, instanceId)
Expand Down

0 comments on commit 8c6e050

Please sign in to comment.