[Bug] TopicName does not throw IllegalArgumentException if localName is whitespace only #23690
Closed
3 tasks done
Labels
type/bug
The PR fixed a bug or issue reported a bug
Search before asking
Read release policy
Version
Pulsar master
Minimal reproduce step
Call
TopicName.get(" ")
.What did you expect to see?
This is a test for the behavior I would expect:
When creating a consumer with the topic name only being a whitespace we get:
That's why I expect
TopicName.get(" ")
to throw an exception too.What did you see instead?
No exception is thrown.
Anything else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: