Skip to content

Commit c098026

Browse files
Neeme Praksjpwsutton
authored andcommitted
Set also "count" (#250)
When initializing via Java API, "count" field should also be set, otherwise toString() will think that there are no topics. Signed-off-by: Neeme Praks <neeme.praks@eesti.ee>
1 parent 636f00e commit c098026

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/wire

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public MqttSubscribe(String[] names, int[] qos) {
7373
if (names.length != qos.length) {
7474
throw new IllegalArgumentException();
7575
}
76+
this.count = names.length;
7677

7778
for (int i=0;i<qos.length;i++) {
7879
MqttMessage.validateQos(qos[i]);

0 commit comments

Comments
 (0)