You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that MqttSubscriptionTopic().matches function is throwing error upon comparing two different topics. But the case is that base topic's length must be greater than the comparing topic's length then it throws this error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..3: 4 #0 List.[] (dart:core-patch/growable_array.dart:264:36) #1 MqttSubscriptionTopic.matches (package:mqtt5_client/src/mqtt_subscription_topic.dart:93:56)
Steps to reproduce:
The raw topic passed inside the MqttSubscriptionTopic() must be of greater length if separated by "/" than the topic passed inside MqttPublicationTopic()
compare both using the MqttSubscriptionTopic("passed raw topic").matches function
I've fixed the above issue and I'll create a PR
The text was updated successfully, but these errors were encountered:
I found that MqttSubscriptionTopic().matches function is throwing error upon comparing two different topics. But the case is that base topic's length must be greater than the comparing topic's length then it throws this error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..3: 4 #0 List.[] (dart:core-patch/growable_array.dart:264:36) #1 MqttSubscriptionTopic.matches (package:mqtt5_client/src/mqtt_subscription_topic.dart:93:56)
Steps to reproduce:
I've fixed the above issue and I'll create a PR
The text was updated successfully, but these errors were encountered: