diff --git a/components/camel-platform-http-jolokia/pom.xml b/components/camel-platform-http-jolokia/pom.xml
index aaddf4aeb0aea..6e0b4e5ad63d9 100644
--- a/components/camel-platform-http-jolokia/pom.xml
+++ b/components/camel-platform-http-jolokia/pom.xml
@@ -33,7 +33,7 @@
Jolokia plugin for standalone Camel HTTP Platform
- 4.4.0
+ 4.5.0
diff --git a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
index f5641985053da..55cd5abe6f1b0 100644
--- a/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
+++ b/components/camel-platform-http-jolokia/src/main/java/org/apache/camel/component/platform/http/plugin/DefaultJolokiaPlatformHttpPlugin.java
@@ -73,7 +73,9 @@ public void doStart() {
@Override
public void doStop() {
- serviceManager.stop();
+ if (serviceManager != null) {
+ serviceManager.stop();
+ }
}
@Override
@@ -93,7 +95,7 @@ private Restrictor createRestrictor(String pLocation) {
}
} catch (IOException e) {
jolokiaLogHandler.error("Error while accessing access restrictor at " + pLocation +
- ". Denying all access to MBeans for security reasons. Exception: " + e,
+ ". Denying all access to MBeans for security reasons. Exception: " + e,
e);
return new DenyAllRestrictor();
}