Fallback to root subsystem when getting region if target subsystem is null
@@ -267,8 +267,11 @@ public class SubsystemResolveContext extends ResolveContext {
}
private Region getRegion(Resource resource) {
+ if (getSubsystem(resource) != null) {
return regions.get(getSubsystem(resource).getName());
}
+ return regions.get(root.getName());
+ }
@Override
public int insertHostedCapability(List<Capability> capabilities, HostedCapability hostedCapability) {
