Skip to content

Conversation

@KGaneshDatta
Copy link

@KGaneshDatta KGaneshDatta commented Aug 7, 2025

The connector thread naming pattern uses placeholders for ${connector.name} and ${task.id} which can be null during fail-fast validation on Confluent Cloud, causing the error: "Cannot invoke 'java.lang.CharSequence.toString()' because 'replacement' is null".

This PR adds proper null handling by using the topic prefix as a fallback when connector name is null, preventing the exception during connection validation without changing the intended naming behavior.

@KGaneshDatta KGaneshDatta requested a review from a team as a code owner August 7, 2025 04:49
@rajdangwal
Copy link
Member

@KGaneshDatta
In the authentication page, the topic.prefix is also going to be null right?
Thus, the validation call, will not have any value for topic.prefix too.

We might need temporary placeholders for these values for cases where null could appear, instead of falling back to other required configuration. Please take that into consideration.

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.

3 participants