From eeea59f7c94d4fd5e1b923d44a0f5f0d1a350e81 Mon Sep 17 00:00:00 2001 From: Gabriele Zigurella Date: Mon, 27 Feb 2023 12:00:21 +0100 Subject: [PATCH] fix: handle null ComponentConfiguration --- .../easyconf/ClassLoaderComponentConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java index 7389e490..c384235e 100644 --- a/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java +++ b/liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java @@ -76,6 +76,10 @@ public class ClassLoaderComponentConfiguration extends ComponentConfiguration { public ComponentProperties getProperties() { ComponentProperties componentProperties = _getAvailableProperties(); + if(componentProperties == null) { + _log.warn("No properties found for " + _componentName) + } + if (!componentProperties.hasBaseConfiguration()) { throw new ConfigurationNotFoundException( _componentName, "The base properties file was not found");