Skip to content

Commit

Permalink
fix: BootstrapServerHost nil pointer (#269)
Browse files Browse the repository at this point in the history
Co-authored-by: Enda Phelan <[email protected]>
  • Loading branch information
wtrocki and Enda Phelan authored Jan 22, 2021
1 parent 8e59246 commit e8eda42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ func ConnectToCluster(connection pkgConnection.Connection,
return
}

if kafkaInstance.GetBootstrapServerHost() == "" {
// logger
fmt.Fprintf(os.Stderr, "Kafka instance is missing required BootstrapServerHost variable\n")
return
}

credentials := CreateCredentials(connection)
if credentials == nil {
return
Expand Down

0 comments on commit e8eda42

Please sign in to comment.