Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pubsub/kafkapub: nil pointer dereference
The [examples][ExampleOpenTopic] show a simple call to `OpenTopic` without `kafkapubsub.TopicOptions` as passing a `nil` argument. This is backed by replacing a `nil` pointer with the appropriate zero-value. This behaviour exists in `OpenSubscription` too. However, PR google#3163 introduced overriding batching options which inadvertently accesses a field of a nil pointer. [ExampleOpenTopic]: https://github.com/google/go-cloud/blob/master/pubsub/kafkapubsub/example_test.go#L36
- Loading branch information