Skip to content

Commit

Permalink
ADD: null check for data processors
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Dec 6, 2024
1 parent 6e4b9e6 commit 2eacfd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class BehandlingService {

private List<DataBehandler> getDatabehandlerForBehandling(BkatProcess process) {
List<DataBehandler> dataBehandlerList = new ArrayList<>();
if(!process.getDataProcessing().getProcessors().isEmpty()) {
if(process.getDataProcessing() != null && !process.getDataProcessing().getProcessors().isEmpty()) {
process.getDataProcessing().getProcessors().forEach(databehandlerId -> {
DataBehandler databehandler = getDataBehandler(databehandlerId);
if(databehandler != null) {
Expand Down

0 comments on commit 2eacfd4

Please sign in to comment.