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

Panic on NewReader - nil pointer dereference in TopicNameWithoutPartitionPart #718

Closed
ian-cogito opened this issue Jan 25, 2022 · 0 comments · Fixed by #734
Closed

Panic on NewReader - nil pointer dereference in TopicNameWithoutPartitionPart #718

ian-cogito opened this issue Jan 25, 2022 · 0 comments · Fixed by #734

Comments

@ian-cogito
Copy link

if tn.Partition < 0 {

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1429578]

goroutine 1691 [running]:
github.com/apache/pulsar-client-go/pulsar/internal.TopicNameWithoutPartitionPart(0xc0006de100)
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/internal/topic_name.go:110 +0x18
github.com/apache/pulsar-client-go/pulsar/internal.(*Metrics).GetLeveledMetrics(0xc0005b0dc0, {0xc0006de100, 0x7b})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/internal/metrics.go:486 +0x6f
github.com/apache/pulsar-client-go/pulsar.newReader(0xc000132840, {{0xc0006de100, 0x7b}, {0x0, 0x0}, 0x0, {0x1d38d58, 0xc000143f68}, 0x0, 0x0, ...})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/reader_impl.go:99 +0x53d
github.com/apache/pulsar-client-go/pulsar.(*client).CreateReader(0xc000132840, {{0xc0006de100, 0x7b}, {0x0, 0x0}, 0x0, {0x1d38d58, 0xc000143f68}, 0x0, 0x0, ...})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/client_impl.go:171 +0x58
github.com/cogitocorp/compute-platform-library/pkg/platform/pulsarhelpers.PulsarHelper.NewReader({{{0xc0000401b0, 0x24}, {0x0, 0x0}}, {0x1d38418, 0xc000132840}, {0xc000590650, 0xc}}, {0xc0006de100, 0x7b})
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 a pull request may close this issue.

1 participant