From 42b9753944d4149196c732d73f2c31edf5b52859 Mon Sep 17 00:00:00 2001 From: Ace Date: Fri, 28 Jun 2019 10:13:51 +0530 Subject: [PATCH] fixing bug with unitiated list --- .../carbon/device/mgt/core/dao/impl/AbstractDeviceDAOImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/AbstractDeviceDAOImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/AbstractDeviceDAOImpl.java index f241691ff6a..f6b42189ebb 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/AbstractDeviceDAOImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/impl/AbstractDeviceDAOImpl.java @@ -295,7 +295,7 @@ public abstract class AbstractDeviceDAOImpl implements DeviceDAO { Connection conn = null; PreparedStatement stmt = null; ResultSet resultSet = null; - List devices = null; + List devices = new ArrayList<>(); try { List> outputLists = new ArrayList<>(); List deviceList = null;