Skip to content

Commit

Permalink
hotfix: added not null check for workflow type when sending notificat…
Browse files Browse the repository at this point in the history
…ion (#409)
  • Loading branch information
empassaro authored Jul 19, 2024
1 parent dfb8c30 commit b28659b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.apache.commons.lang3.StringUtils;

import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BinaryOperator;

Expand Down Expand Up @@ -87,7 +88,7 @@ public static AckPayloadRequest readAckPayloadValue(ObjectMapper objectMapper, S
}

public static boolean isNotInstitutionOnboarding(Onboarding onboarding) {
return !ALLOWED_WORKFLOWS_FOR_INSTITUTION_NOTIFICATIONS.contains(onboarding.getWorkflowType());
return Objects.nonNull(onboarding.getWorkflowType()) && !ALLOWED_WORKFLOWS_FOR_INSTITUTION_NOTIFICATIONS.contains(onboarding.getWorkflowType());
}

public static String getOnboardingAggregateString(ObjectMapper objectMapper, OnboardingAggregateOrchestratorInput onboarding) {
Expand Down

0 comments on commit b28659b

Please sign in to comment.