You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/07/30 09:59:55 UTC
[camel] branch master updated: Fixed potential NPE
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 2a209d8 Fixed potential NPE
2a209d8 is described below
commit 2a209d81018f345f4056c2ca033c23d53f868649
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Jul 30 11:59:43 2019 +0200
Fixed potential NPE
---
core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
index ed57803..3dd16f1 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/MainSupport.java
@@ -643,6 +643,9 @@ public abstract class MainSupport extends ServiceSupport {
protected void initCamelContext() throws Exception {
camelContext = createCamelContext();
+ if (camelContext == null) {
+ throw new IllegalStateException("Created CamelContext is null");
+ }
postProcessCamelContext(camelContext);
}