Skip to content

Commit

Permalink
Fixed: Fix regression introduced in revision 1867409
Browse files Browse the repository at this point in the history
(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 8553f0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8553f0b

Please sign in to comment.