Skip to content

Commit a0a131c

Browse files
author
chongyuan
committed
Receive Maximum property should have default value if absent
Signed-off-by: chongyuan <yinchongyuan@xmeter.net>
1 parent e854f93 commit a0a131c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/MqttConnectionState.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public void clearConnectionState() {
5353

5454

5555
public Integer getReceiveMaximum() {
56+
if (receiveMaximum == null) {
57+
return 65535;
58+
}
5659
return receiveMaximum;
5760
}
5861

0 commit comments

Comments
 (0)