This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 93a5e3a01a3 Fix NPE
93a5e3a01a3 is described below

commit 93a5e3a01a37679bcb00a3b8bf1eb815011650d9
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 13 12:10:42 2024 +0200

    Fix NPE
---
 .../org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
 
b/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
index c12411915f5..b696e4db0fd 100644
--- 
a/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
+++ 
b/components-starter/camel-openapi-java-starter/src/main/java/org/apache/camel/springboot/openapi/OpenApiAutoConfiguration.java
@@ -140,6 +140,10 @@ public class OpenApiAutoConfiguration {
     }
 
     private static void initOpenApi(BeanConfig bc, Info info, Map<String, 
Object> config) {
+        if (config == null || config.isEmpty()) {
+            return;
+        }
+
         // configure openApi options
         String s = (String) config.get("openapi.version");
         if (s != null) {

Reply via email to