Skip to content

KafkaAdmin NPE #2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
garyrussell opened this issue Jul 12, 2022 · 0 comments · Fixed by #2346
Closed

KafkaAdmin NPE #2345

garyrussell opened this issue Jul 12, 2022 · 0 comments · Fixed by #2346

Comments

@garyrussell
Copy link
Contributor

When modifying topic configuration, where that configuration is not currently set on the topic.

@garyrussell garyrussell added this to the 3.0.0-M5 milestone Jul 12, 2022
garyrussell added a commit to garyrussell/spring-kafka that referenced this issue Jul 12, 2022
Resolves spring-projects#2345

I haven't been able to reproduce it since, but I saw one occasion where
the existing config property returned null.

Protect against an NPE in that case and add the property to the change
candidates.

Also move the map entry out of the for loop.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jul 12, 2022
Resolves #2345

I haven't been able to reproduce it since, but I saw one occasion where
the existing config property returned null.

Protect against an NPE in that case and add the property to the change
candidates.

Also move the map entry out of the for loop.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jul 12, 2022
Resolves #2345

I haven't been able to reproduce it since, but I saw one occasion where
the existing config property returned null.

Protect against an NPE in that case and add the property to the change
candidates.

Also move the map entry out of the for loop.

**cherry-pick to 2.9.x, 2.8.x**
artembilan pushed a commit that referenced this issue Jul 12, 2022
Resolves #2345

I haven't been able to reproduce it since, but I saw one occasion where
the existing config property returned null.

Protect against an NPE in that case and add the property to the change
candidates.

Also move the map entry out of the for loop.

**cherry-pick to 2.9.x, 2.8.x**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant