This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.14.x by this push:
new 0631ac2271ce camel-console: polished
0631ac2271ce is described below
commit 0631ac2271ce586f40be3be3057f487d03b32c68
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Oct 30 10:32:30 2025 +0100
camel-console: polished
---
.../java/org/apache/camel/impl/console/ProcessorDevConsole.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/core/camel-console/src/main/java/org/apache/camel/impl/console/ProcessorDevConsole.java
b/core/camel-console/src/main/java/org/apache/camel/impl/console/ProcessorDevConsole.java
index e8a661cd129c..0ee11ea567c1 100644
---
a/core/camel-console/src/main/java/org/apache/camel/impl/console/ProcessorDevConsole.java
+++
b/core/camel-console/src/main/java/org/apache/camel/impl/console/ProcessorDevConsole.java
@@ -123,7 +123,9 @@ public class ProcessorDevConsole extends AbstractDevConsole
{
sb.append(String.format("\n Description: %s",
mp.getDescription()));
}
sb.append(String.format("\n Processor: %s",
mp.getProcessorName()));
- sb.append(String.format("\n Step Id: %s", mp.getStepId()));
+ if (mp.getStepId() != null) {
+ sb.append(String.format("\n Step Id: %s",
mp.getStepId()));
+ }
sb.append(String.format("\n Level: %d", mp.getLevel()));
if (mp.getSourceLocation() != null) {
String loc = mp.getSourceLocation();
@@ -233,7 +235,9 @@ public class ProcessorDevConsole extends AbstractDevConsole
{
}
jo.put("state", mp.getState());
jo.put("disabled", mp.getDisabled());
- jo.put("stepId", mp.getStepId());
+ if (mp.getStepId() != null) {
+ jo.put("stepId", mp.getStepId());
+ }
String line = ConsoleHelper.loadSourceLine(getCamelContext(),
mp.getSourceLocation(), mp.getSourceLineNumber());
if (line != null) {