From 2840a9e37a85e5852a9586604f763f8c6981fd0f Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Mon, 19 Jun 2023 18:07:33 +0100 Subject: [PATCH] Fix NPE in RunningDevService which represens a shared service (cherry picked from commit 28034bbf81db8f5f7199dc98b133a662dcab7b51) --- .../deployment/builditem/DevServicesResultBuildItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesResultBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesResultBuildItem.java index 5ed1385142e11..560a9d1f49e38 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesResultBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/DevServicesResultBuildItem.java @@ -87,7 +87,9 @@ public boolean isOwner() { @Override public void close() throws IOException { - this.closeable.close(); + if (this.closeable != null) { + this.closeable.close(); + } } public DevServicesResultBuildItem toBuildItem() {