Skip to content

Commit

Permalink
CAMEL-21572: fix java.lang.NullPointerException when using SetHeader …
Browse files Browse the repository at this point in the history
…and Stub
  • Loading branch information
bartoszpop committed Dec 27, 2024
1 parent e748688 commit fac232e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@ public void init(CamelContext context) {
expression.init(context);
if (expression instanceof ConstantExpressionAdapter constantExpressionAdapter) {
Object value = constantExpressionAdapter.getValue();
preprocessedExpression.add(value.toString());
preprocessedExpression.add(String.valueOf(value));
} else {
preprocessedExpression.add(expression);
constantsOnly = false;
Expand Down

0 comments on commit fac232e

Please # to comment.