You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2022/10/19 19:55:34 UTC

[hop] branch master updated: HOP-4490 : Building execution information for workflow throws error

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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new f7cd939f2e HOP-4490 : Building execution information for workflow throws error
     new 5b82b677c1 Merge pull request #1751 from mattcasters/cypher-builder
f7cd939f2e is described below

commit f7cd939f2e6968fc8f4b09e5374ed8cdc81e5932
Author: Matt Casters <ma...@gmail.com>
AuthorDate: Wed Oct 19 17:40:20 2022 +0200

    HOP-4490 : Building execution information for workflow throws error
---
 engine/src/main/java/org/apache/hop/execution/ExecutionBuilder.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/engine/src/main/java/org/apache/hop/execution/ExecutionBuilder.java b/engine/src/main/java/org/apache/hop/execution/ExecutionBuilder.java
index 99c1a9d666..101e891df6 100644
--- a/engine/src/main/java/org/apache/hop/execution/ExecutionBuilder.java
+++ b/engine/src/main/java/org/apache/hop/execution/ExecutionBuilder.java
@@ -27,7 +27,6 @@ import org.apache.hop.core.variables.IVariables;
 import org.apache.hop.execution.Execution.EnvironmentDetailType;
 import org.apache.hop.pipeline.PipelineMeta;
 import org.apache.hop.pipeline.engine.IPipelineEngine;
-import org.apache.hop.pipeline.engines.local.LocalPipelineEngine;
 import org.apache.hop.pipeline.transform.ITransform;
 import org.apache.hop.workflow.WorkflowMeta;
 import org.apache.hop.workflow.action.ActionMeta;
@@ -99,7 +98,8 @@ public final class ExecutionBuilder {
         of().withFilename(workflow.getWorkflowMeta().getFilename())
             .withName(workflow.getWorkflowMeta().getName())
             .withId(workflow.getLogChannelId())
-            .withParentId(workflow.getParent().getLogChannelId())
+            .withParentId(
+                workflow.getParent() == null ? null : workflow.getParent().getLogChannelId())
             .withExecutorType(ExecutionType.Workflow)
             .withExecutorXml(workflow.getWorkflowMeta().getXml(workflow))
             .withMetadataJson(