From 42e805b5b28adef59c5fedf4dcdfbd17f2031a13 Mon Sep 17 00:00:00 2001 From: stigus Date: Fri, 6 Sep 2024 13:50:28 +0200 Subject: [PATCH] Fix for gjenopprett NullPointer --- .../src/main/java/no/nav/dolly/service/BestillingService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/service/BestillingService.java b/apps/dolly-backend/src/main/java/no/nav/dolly/service/BestillingService.java index 576e0c57d2f..5ab6be48e40 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/service/BestillingService.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/service/BestillingService.java @@ -419,6 +419,10 @@ public List getProgressByBestillingId(Long bestillingId) { private String filterAvailable(Collection environments) { + if (isNull(environments) || environments.isEmpty()) { + return null; + } + var miljoer = miljoerConsumer.getMiljoer().block(); if (isNull(miljoer)) {