fix null pointer cxflow + multi tenant
fix null pointer in multi tenant flow
@@ -278,6 +278,12 @@ public class ConfigurationOverrider {
}
CxGoConfigFromWebService cxgoConfig = reposManagerService.getCxGoDynamicConfig(scmType, organizationName);
+
+ if(cxgoConfig == null){
+ log.error("Multi Tenant mode: missing CxGo configuration in Repos Manager Service. Working with Multi Tenant = false ");
+ return;
+ }
+
String className = CxGoConfigFromWebService.class.getSimpleName();
log.info("Applying {} configuration.", className);
Optional.ofNullable(cxgoConfig.getTeam())
