HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
When using the publish method of the rx client I check the responseTopic of the returned Mqtt5Publish object,
and I noticed that the Optional is present, but with value "null".
🔬 How To Reproduce
Steps to reproduce the behavior:
Instantiate the client (using the rx version)
Try to publish a message with the publish method
Check the returned value from the publish method and check the responseTopic field.
Code sample
Environment
Where are you running/using this client?
PC
Hardware or Device?
PC
What version of this client are you using?
1.3.0
JVM version?
JDK 17
Operating System?
Linux (Manjaro)
Which MQTT protocol version is being used?
Version 5
Which MQTT broker (name and version)?
test.mosquitto.org
📈 Expected behavior
I would expect an empty optional even if the "null" string is returned by the broker (?)
🐛 Bug Report
When using the
publish
method of the rx client I check theresponseTopic
of the returnedMqtt5Publish
object, and I noticed that theOptional
is present, but with value"null"
.🔬 How To Reproduce
Steps to reproduce the behavior:
publish
methodpublish
method and check theresponseTopic
field.Code sample
Environment
Where are you running/using this client?
PC
Hardware or Device?
PC
What version of this client are you using?
1.3.0
JVM version?
JDK 17
Operating System?
Linux (Manjaro)
Which MQTT protocol version is being used?
Version 5
Which MQTT broker (name and version)?
test.mosquitto.org
📈 Expected behavior
I would expect an empty optional even if the
"null"
string is returned by the broker (?)