Skip to content

fix: BootstrapServerHost nil pointer#269

Merged
craicoverflow merged 3 commits intomainfrom
boostrapfix
Jan 22, 2021
Merged

fix: BootstrapServerHost nil pointer#269
craicoverflow merged 3 commits intomainfrom
boostrapfix

Conversation

@wtrocki
Copy link
Collaborator

@wtrocki wtrocki commented Jan 22, 2021

No description provided.

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() == "" {

}

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