Axway-API-Management-Plus / apim-service-broker

Axway APIM Pivotal Cloud Foundry Service Broker implementation
Apache License 2.0
2 stars 1 forks source link

Cannot create new ServiceInstance (i.e. error creating Org+User) #5

Closed remisbaima closed 5 years ago

remisbaima commented 5 years ago

For issue, check my comment here: https://github.com/Axway-API-Management-Plus/apim-service-broker/commit/5ccf17508867019e1d7e3592ca540f50089aa336#r34792814

Possible fix: just add a null check:

// Check whether the  user is already associated  with some other organization
if (apiUser != null && apiUser.getOrganizationId() != null) {
    throw new AxwayException("A user with the supplied login name already exists");
}