Sfoglia il codice sorgente

fix: handle null ComponentConfiguration

fix/NullPointer-Exceptions
Gabriele Zigurella 2 anni fa
parent
commit
eeea59f7c9
  1. 4
      liferay-plugins-sdk-6.2/hooks/sicilia-p7m-preview-hook/docroot/WEB-INF/src/com/liferay/portal/configuration/easyconf/ClassLoaderComponentConfiguration.java

4
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() { public ComponentProperties getProperties() {
ComponentProperties componentProperties = _getAvailableProperties(); ComponentProperties componentProperties = _getAvailableProperties();
if(componentProperties == null) {
_log.warn("No properties found for " + _componentName)
}
if (!componentProperties.hasBaseConfiguration()) { if (!componentProperties.hasBaseConfiguration()) {
throw new ConfigurationNotFoundException( throw new ConfigurationNotFoundException(
_componentName, "The base properties file was not found"); _componentName, "The base properties file was not found");

Caricamento…
Annulla
Salva