Skip to content

Commit 89ce666

Browse files
committed
fix: continue if states null or empty
1 parent a6be1ef commit 89ce666

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/fr/insee/genesis/domain/service/rawdata/RawResponseService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,10 @@ private static void convertToCollectedVar(
366366
Map<String, Object> states = JsonUtils.asMap(collectedVariable.getValue());
367367

368368
// nothing if no state
369+
if (states == null || states.isEmpty()) {
370+
continue;
371+
}
372+
369373
if (states.containsKey(stateKey)) {
370374
Object value = states.get(stateKey);
371375

0 commit comments

Comments
 (0)