From 7281b8b3088af61787f73177648fec40fe938008 Mon Sep 17 00:00:00 2001 From: Enda Date: Thu, 21 Jan 2021 17:33:37 +0000 Subject: [PATCH] fix: pointer error when bootstrap host is empty (#266) --- pkg/sdk/kafka/topics/topics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sdk/kafka/topics/topics.go b/pkg/sdk/kafka/topics/topics.go index 34eace57e..f20377c46 100644 --- a/pkg/sdk/kafka/topics/topics.go +++ b/pkg/sdk/kafka/topics/topics.go @@ -63,7 +63,7 @@ func brokerConnect(opts *Options) (broker *kafka.Conn, ctl *kafka.Conn, err erro return nil, nil, fmt.Errorf("Could not get Kafka instance: %w", apiErr) } - if *kafkaInstance.BootstrapServerHost == "" { + if kafkaInstance.GetBootstrapServerHost() == "" { return nil, nil, fmt.Errorf("Kafka instance is missing a Bootstrap Server Host") }