Skip to content
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

fix: BootstrapServerHost nil pointer #269

Merged
merged 3 commits into from
Jan 22, 2021
Merged

fix: BootstrapServerHost nil pointer #269

merged 3 commits into from
Jan 22, 2021

Conversation

wtrocki
Copy link
Collaborator

@wtrocki wtrocki commented Jan 22, 2021

No description provided.

@@ -101,6 +101,11 @@ func ConnectToCluster(connection pkgConnection.Connection,
return
}

if kafkaInstance.BootstrapServerHost == nil || *kafkaInstance.BootstrapServerHost == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if kafkaInstance.BootstrapServerHost == nil || *kafkaInstance.BootstrapServerHost == "" {
if kafkaInstance.getBootstrapServerHost() == "" {

@@ -101,6 +101,11 @@ func ConnectToCluster(connection pkgConnection.Connection,
return
}

if kafkaInstance.BootstrapServerHost == nil || *kafkaInstance.BootstrapServerHost == "" {
fmt.Fprintf(os.Stderr, "Kafka instance is missing required BootstrapServerHost variable")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be using the logger

@craicoverflow craicoverflow self-requested a review January 22, 2021 11:04
@craicoverflow craicoverflow merged commit e8eda42 into main Jan 22, 2021
@craicoverflow craicoverflow deleted the boostrapfix branch January 22, 2021 11:04
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.

2 participants