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

Subscribe should not return null #13

Merged
merged 1 commit into from
Nov 15, 2020
Merged

Conversation

hannesa2
Copy link
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 <[email protected]>

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 <[email protected]>
@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