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 (#16657)
  • Loading branch information
bartoszpop authored Dec 27, 2024
1 parent 102afbc commit bacd4e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,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 bacd4e5

Please # to comment.