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

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


The following commit(s) were added to refs/heads/main by this push:
     new 78f95939bb Support for adding extra tabs to the pipeline/workflow 
graph may return the value null #8491 (#8492)
78f95939bb is described below

commit 78f95939bbab299d7fa53f6afb22766d50b53209
Author: Nicolas Adment <[email protected]>
AuthorDate: Mon Sep 21 13:33:25 2026 +0200

    Support for adding extra tabs to the pipeline/workflow graph may return the 
value null #8491 (#8492)
---
 .../org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java  | 5 ++++-
 .../org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java  | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
index 9a699c8075..7d32f19b6e 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/pipeline/HopGuiPipelineGraph.java
@@ -5619,7 +5619,10 @@ public class HopGuiPipelineGraph extends 
HopGuiAbstractGraph
               pluginTabClass.getConstructor(HopGui.class, 
HopGuiPipelineGraph.class);
           Object object = constructor.newInstance(hopGui, this);
           CTabItem tab = (CTabItem) tabItem.getMethod().invoke(object, 
extraViewTabFolder);
-          tab.setData(EXTRA_TAB_ID, tabItem.getId());
+          // Some plugins may return `null`, for example, if a feature is not 
enabled.
+          if (tab != null) {
+            tab.setData(EXTRA_TAB_ID, tabItem.getId());
+          }
         } catch (Exception e) {
           new ErrorDialog(
               getShell(),
diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
index 48423a4504..c979172e4b 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/file/workflow/HopGuiWorkflowGraph.java
@@ -5192,7 +5192,10 @@ public class HopGuiWorkflowGraph extends 
HopGuiAbstractGraph
               pluginTabClass.getConstructor(HopGui.class, 
HopGuiWorkflowGraph.class);
           Object object = constructor.newInstance(hopGui, this);
           CTabItem tab = (CTabItem) tabItem.getMethod().invoke(object, 
extraViewTabFolder);
-          tab.setData(EXTRA_TAB_ID, tabItem.getId());
+          // Some plugins may return `null`, for example, if a feature is not 
enabled.
+          if (tab != null) {
+            tab.setData(EXTRA_TAB_ID, tabItem.getId());
+          }
         } catch (Exception e) {
           new ErrorDialog(
               getShell(),

Reply via email to