Skip to content

Commit

Permalink
fix: Fixed null pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mamartinezmejia committed Jan 9, 2024
1 parent d65d86c commit 5c0dd4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import ca.bc.gov.app.repository.SubmissionContactRepository;
import ca.bc.gov.app.repository.SubmissionDetailRepository;
import java.util.Map;
import java.util.Objects;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.integration.annotation.ServiceActivator;
Expand Down Expand Up @@ -91,7 +92,7 @@ public Mono<Message<EmailRequestDto>> sendNotification(Message<Integer> message)
"userName", submissionContact.getFirstName(),
"business", Map.of(
"name", details.getOrganizationName(),
"clientNumber", details.getClientNumber()
"clientNumber", Objects.toString(details.getClientNumber(), "")
)
)
)
Expand Down

0 comments on commit 5c0dd4d

Please sign in to comment.