diff --git a/code/src/main/java/org/example/util/JsonMapConverter.java b/code/src/main/java/org/example/util/JsonMapConverter.java index 9f3fa02..a28f32b 100644 --- a/code/src/main/java/org/example/util/JsonMapConverter.java +++ b/code/src/main/java/org/example/util/JsonMapConverter.java @@ -37,7 +37,7 @@ public static Map jsonToMap(String json) { * @return a JSON string representation of the Map */ public static String mapToJson(Map map) { - if (map != null) { + if (map == null) { throw new IllegalArgumentException("Map cannot be null"); }