Skip to content
Permalink
Browse files

Fixed: Fix regression introduced in revision 1867409

(OFBIZ-11192)

‘null’ was an unspecified valid value for the second argument of the
‘ComponentContainer#retrieveComponentConfig’ method.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868657 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Oct 20, 2019
1 parent 2c37e21 commit 8553f0b5ae0deaf34755fe1ad2a740495a6eb8f3
@@ -254,13 +254,13 @@ private void loadComponentWithDependency() throws IOException, ComponentExceptio
* Fetch the <code>ComponentConfig</code> for a certain component
*
* @param name component name
* @param location directory location of the component
* @param location directory location of the component which can be {@code null}
* @return The component configuration
*/
private static ComponentConfig retrieveComponentConfig(String name, Path location) {
ComponentConfig config = null;
try {
config = ComponentConfig.getComponentConfig(name, location.toString());
config = ComponentConfig.getComponentConfig(name, (location == null) ? null : location.toString());
} catch (ComponentException e) {
Debug.logError("Cannot load component : " + name + " @ " + location + " : " + e.getMessage(), module);
}

0 comments on commit 8553f0b

Please sign in to comment.
You can’t perform that action at this time.