Skip to content

Commit 26aac25

Browse files
committed
🔨 Validation test Departement
1 parent 77a2be9 commit 26aac25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/france/outils/OutilsDepartement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static Departement rechercherParCode(int code) {
6161
}
6262

6363
public static List<Caumune> getCaumunes(Departement departement){
64-
return REPERTOIRE_CAUMUNE.get(departement);
64+
return REPERTOIRE_CAUMUNE.getOrDefault(departement, new ArrayList<>());
6565
}
6666

6767
private static EnumMap<Departement, List<Caumune>> initialiserRepertoireCaumune() {

0 commit comments

Comments
 (0)