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 1709e7d451 fix: DatabaseJoin dialog NPE when the configured connection 
no longer exists (#8110)
1709e7d451 is described below

commit 1709e7d45138a114626bf8cc5751be728e67bea1
Author: water <[email protected]>
AuthorDate: Thu Aug 27 20:07:36 2026 +0800

    fix: DatabaseJoin dialog NPE when the configured connection no longer 
exists (#8110)
    
    HOP-8095: Database join transform throws NullPointerException if the
    connection no longer exists. pipelineMeta.findDatabase() returns null
    for a stale connection reference, and getSqlReservedWords() dereferences
    it unconditionally.
    
    Return an empty reserved-words list when the database is missing, keeping
    the dialog openable so the connection can be fixed.
    
    Co-authored-by: waterWang <[email protected]>
---
 .../hop/pipeline/transforms/databasejoin/DatabaseJoinDialog.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/plugins/transforms/databasejoin/src/main/java/org/apache/hop/pipeline/transforms/databasejoin/DatabaseJoinDialog.java
 
b/plugins/transforms/databasejoin/src/main/java/org/apache/hop/pipeline/transforms/databasejoin/DatabaseJoinDialog.java
index bfb37f8a02..8dd1fe8592 100644
--- 
a/plugins/transforms/databasejoin/src/main/java/org/apache/hop/pipeline/transforms/databasejoin/DatabaseJoinDialog.java
+++ 
b/plugins/transforms/databasejoin/src/main/java/org/apache/hop/pipeline/transforms/databasejoin/DatabaseJoinDialog.java
@@ -444,6 +444,9 @@ public class DatabaseJoinDialog extends BaseTransformDialog 
{
     }
 
     DatabaseMeta databaseMeta = 
pipelineMeta.findDatabase(input.getConnection(), variables);
+    if (databaseMeta == null) {
+      return List.of();
+    }
     return Arrays.stream(databaseMeta.getReservedWords()).toList();
   }
 

Reply via email to