From 55233099606c405bb9d60f2f1548de6d9bec7422 Mon Sep 17 00:00:00 2001 From: Hugo Bole Date: Wed, 12 Jul 2023 11:58:32 +0200 Subject: [PATCH] =?UTF-8?q?Corrige=20une=20NPE=20lorsqu'on=20va=20chercher?= =?UTF-8?q?=20les=20op=C3=A9rations=20DELETE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #182708 Change-Id: I666c327e2cfb45018bc7387263b76a30008666e1 --- .../src/main/java/fr/sdis83/remocra/usecase/pei/PeiUseCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/pei/PeiUseCase.java b/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/pei/PeiUseCase.java index 5493b531a..1c7eea35a 100644 --- a/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/pei/PeiUseCase.java +++ b/api-remocra/api/src/main/java/fr/sdis83/remocra/usecase/pei/PeiUseCase.java @@ -553,7 +553,7 @@ public String diff(String dateString) throws ResponseException { .collect(Collectors.toMap(HydrantAccessibilite::getNumero, Function.identity())); List listeDiff = new ArrayList<>(); for (PeiDiffModel p : diffs) { - if (mapAccessibilite.get(p.getNumero()).isAccessible() + if (mapAccessibilite.get(p.getNumero()) != null && mapAccessibilite.get(p.getNumero()).isAccessible() || ("CARACTERISTIQUES".equals(p.getType()) && "DELETE".equals(p.getOperation()))) { try {