emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.6k stars 420 forks source link

Could not connect to MQTT 5.0 #567

Open rsreju opened 10 months ago

rsreju commented 10 months ago

While connecting to Flespi for getting OBD2 data the following error occurred.

CocoaMQTT/MqttDecodeConnAck.swift:160: Fatal error: Unexpectedly found nil while unwrapping an Optional value

userProperty![key!] = value

userProperty found nil

Please handle userProperty nil case

rsreju commented 9 months ago

@leeway1208 Please review