Skip to content

fix: DatabaseJoin dialog NPE when the configured connection no longer exists - #8110

Open
waterWang wants to merge 1 commit into
apache:mainfrom
waterWang:fix/databasejoin-npe-8095
Open

fix: DatabaseJoin dialog NPE when the configured connection no longer exists#8110
waterWang wants to merge 1 commit into
apache:mainfrom
waterWang:fix/databasejoin-npe-8095

Conversation

@waterWang

Copy link
Copy Markdown

Fixes #8095

DatabaseJoinDialog.getSqlReservedWords() dereferences the result of pipelineMeta.findDatabase() without a null check. When the configured connection no longer exists, findDatabase() returns null and databaseMeta.getReservedWords() throws NullPointerException, making the transform impossible to reopen.

This matches the existing null check in the dialog's ok() method. When the database is missing, getSqlReservedWords() now returns an empty list so the dialog stays open and the connection can be fixed.

… exists

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.
@hansva

hansva commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Thank you for the contribution @waterWang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Database join transform throw NPE if connection doesn't exist

2 participants