Skip to content

Commit

Permalink
fix: added not null check in isNotInstitutionOnboarding method
Browse files Browse the repository at this point in the history
  • Loading branch information
empassaro committed Jul 19, 2024
1 parent dfb8c30 commit 2334a9b
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 2334a9b

Please sign in to comment.