diff --git a/components/apimgt/org.wso2.carbon.apimgt.common.analytics/src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/impl/AnalyticsDataPublisher.java b/components/apimgt/org.wso2.carbon.apimgt.common.analytics/src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/impl/AnalyticsDataPublisher.java index 5dc06ebefd56..08cc952ad984 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.common.analytics/src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/impl/AnalyticsDataPublisher.java +++ b/components/apimgt/org.wso2.carbon.apimgt.common.analytics/src/main/java/org/wso2/carbon/apimgt/common/analytics/publishers/impl/AnalyticsDataPublisher.java @@ -58,7 +58,7 @@ public static AnalyticsDataPublisher getInstance() { } private List getReporterTypesOrNull(String typeConfig) { - if (typeConfig == null) { + if (typeConfig == null || typeConfig.isEmpty()) { return null; } if (typeConfig.startsWith("[") && typeConfig.endsWith("]")) {