Skip to content

Commit

Permalink
WFCORE-6347 Fix ISE if getCapabilityServiceName(String, Class<?>, Str…
Browse files Browse the repository at this point in the history
…ing...) called with empty array.
  • Loading branch information
pferraro committed Jan 10, 2024
1 parent e52be27 commit 32f7b53
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,8 @@ public ServiceName getCapabilityServiceName(String capabilityBaseName, String dy

@Override
public ServiceName getCapabilityServiceName(String capabilityBaseName, Class<?> serviceType, String ... dynamicParts) {
return getCapabilityServiceName(capabilityBaseName, serviceType).append(dynamicParts);
ServiceName name = getCapabilityServiceName(capabilityBaseName, serviceType);
return dynamicParts.length > 0 ? name.append(dynamicParts) : name;
}

ServiceName getCapabilityServiceName(String capabilityName, Class<?> serviceType, final PathAddress address) {
Expand Down

0 comments on commit 32f7b53

Please sign in to comment.