From 7496415ab35c79ed16131eb5c6819036181b9c72 Mon Sep 17 00:00:00 2001 From: nipuni Date: Mon, 15 Jul 2024 13:24:45 +0530 Subject: [PATCH] Add default case in CategorizedSubscriptionResult constructor. --- .../mgt/common/CategorizedSubscriptionResult.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/application-mgt/io.entgra.device.mgt.core.application.mgt.common/src/main/java/io/entgra/device/mgt/core/application/mgt/common/CategorizedSubscriptionResult.java b/components/application-mgt/io.entgra.device.mgt.core.application.mgt.common/src/main/java/io/entgra/device/mgt/core/application/mgt/common/CategorizedSubscriptionResult.java index e26e567379..18da5a7736 100644 --- a/components/application-mgt/io.entgra.device.mgt.core.application.mgt.common/src/main/java/io/entgra/device/mgt/core/application/mgt/common/CategorizedSubscriptionResult.java +++ b/components/application-mgt/io.entgra.device.mgt.core.application.mgt.common/src/main/java/io/entgra/device/mgt/core/application/mgt/common/CategorizedSubscriptionResult.java @@ -18,6 +18,7 @@ package io.entgra.device.mgt.core.application.mgt.common; +import java.util.ArrayList; import java.util.List; public class CategorizedSubscriptionResult { @@ -77,6 +78,13 @@ public class CategorizedSubscriptionResult { case "SUBSCRIBED": this.subscribedDevices = devices; break; + default: + this.installedDevices = new ArrayList<>(); + this.pendingDevices = new ArrayList<>(); + this.errorDevices = new ArrayList<>(); + this.newDevices = new ArrayList<>(); + this.subscribedDevices = new ArrayList<>(); + break; } } -- 2.36.3