From 079689951dca2cae08deb7042add4ec4f645bfc7 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Mon, 21 Mar 2022 15:19:55 +0530 Subject: [PATCH] Null map values (#12017) --- .../server/migrations/DatabaseChangelog2.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java index ae462ceae8..bfb9292061 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/migrations/DatabaseChangelog2.java @@ -178,11 +178,11 @@ public class DatabaseChangelog2 { .forEach(k -> { if (k != null) { final Object oldValue = unpublishedFormData.get(k); - unpublishedFormData.put(k, Map.of( + unpublishedFormData.put(k, new HashMap<>(Map.of( "data", oldValue, "componentData", oldValue, "viewType", "component" - )); + ))); } }); @@ -232,11 +232,11 @@ public class DatabaseChangelog2 { .forEach(k -> { if (k != null) { final Object oldValue = publishedFormData.get(k); - publishedFormData.put(k, Map.of( + publishedFormData.put(k, new HashMap<>(Map.of( "data", oldValue, "componentData", oldValue, "viewType", "component" - )); + ))); } }); @@ -311,11 +311,11 @@ public class DatabaseChangelog2 { } if (key != null) { formDataMap.put(key, - Map.of( + new HashMap<>(Map.of( "data", value, "componentData", value, "viewType", "component" - )); + ))); } }