This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 833c48344a92c7bd8e155b5a131f791358705eab
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jul 10 17:40:44 2026 +0200

    chore: fix literal 'null' rendering when exception message is null in 
StatusParser
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java
 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java
index a25102a2563a..148867b5b57a 100644
--- 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java
+++ 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StatusParser.java
@@ -685,7 +685,8 @@ final class StatusParser {
             entry.exception = msg != null ? Jsoner.unescape(msg) : null;
             String st = excJson.getString("stackTrace");
             if (st != null && !st.isEmpty()) {
-                entry.exception = entry.exception + "\n" + Jsoner.unescape(st);
+                String ust = Jsoner.unescape(st);
+                entry.exception = entry.exception != null ? entry.exception + 
"\n" + ust : ust;
             }
         }
 
@@ -789,7 +790,8 @@ final class StatusParser {
             entry.exception = msg != null ? Jsoner.unescape(msg) : null;
             String st = excJson.getString("stackTrace");
             if (st != null && !st.isEmpty()) {
-                entry.exception = entry.exception + "\n" + Jsoner.unescape(st);
+                String ust = Jsoner.unescape(st);
+                entry.exception = entry.exception != null ? entry.exception + 
"\n" + ust : ust;
             }
         }
 

Reply via email to