camunda-community-hub / camunda-platform-7-rest-client-java

Community extension to generate a Java client from the provided Camunda 7 OpenAPI descitpion and also warp it into Spring Boot
Apache License 2.0
57 stars 10 forks source link

application.yaml discouraged + NPE if no configuration #152

Open ikucuze opened 1 month ago

ikucuze commented 1 month ago

rafactor 7a8fbbee76e5fe5360df8d5085361fb8211a39bd introduced an 'application.yaml' config file in springboot module.

Importing this dependency in a project having an application.yaml will mask the dependency one, so the configs in CamundaAutodeploymentProperties will be null.

This produces a NullPointer in CamundaProcessAutodeployment.deployCamundaResources(), due to auto unboxing of if (!properties.getEnabled()).

Hence, the behavior is different, depending on the project which import the dependency.

Defaults should be set in ConfigurationProperties file.

ikucuze commented 1 month ago

fix by PR https://github.com/camunda-community-hub/camunda-platform-7-rest-client-java/pull/153