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 47794a5 Polished
47794a5 is described below
commit 47794a5184571f83a831f0769c3a107b474d807f
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Mar 26 12:28:37 2019 +0100
Polished
---
.../java/org/apache/camel/model/ThrowExceptionDefinition.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git
a/core/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
b/core/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
index d3236af..d7a0222 100644
---
a/core/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
+++
b/core/camel-core/src/main/java/org/apache/camel/model/ThrowExceptionDefinition.java
@@ -51,7 +51,13 @@ public class ThrowExceptionDefinition extends
NoOutputDefinition<ThrowExceptionD
}
protected String description() {
- return exception != null ? exception.getClass().getCanonicalName() :
"ref:" + ref;
+ if (exception != null) {
+ return exception.getClass().getCanonicalName();
+ } else if (ref != null) {
+ return "ref:" + ref;
+ } else {
+ return "";
+ }
}
@Override