Skip to content

Subscribe should not return null - #13

Merged
hannesa2 merged 1 commit into
masterfrom
null_on_subscribe_return
Nov 15, 2020
Merged

Subscribe should not return null#13
hannesa2 merged 1 commit into
masterfrom
null_on_subscribe_return

Conversation

@hannesa2

Copy link
Copy Markdown
Owner

Always returning null breaks the contract set in the function signature
and documentation.

This affects all subscribes that receive IMqttMessageListener as parameter.

Should pass IMqttActionListener on subscribe (#262)

On subscribe, a failure would be reported but onSuccess would never be
called. The reason was not passing the IMqttActionListener forward to
MqttClient.

eclipse-paho/paho.mqtt.android#383

Always returning null breaks the contract set in the function signature
and documentation.

This affects all subscribes that receive `IMqttMessageListener` as parameter.

Signed-off-by: Fernando Governatore <affqlixo+eclipse@gmail.com>

Should pass IMqttActionListener on subscribe (#262)

  On subscribe, a failure would be reported but onSuccess would never be
called. The reason was not passing the IMqttActionListener forward to
MqttClient.

Signed-off-by: Fernando Governatore <affqlixo+eclipse@gmail.com>
@hannesa2
hannesa2 merged commit fe771c0 into master Nov 15, 2020
@hannesa2
hannesa2 deleted the null_on_subscribe_return branch November 15, 2020 06:37
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 this pull request may close these issues.

1 participant