fix whitescan error
@@ -1507,7 +1507,7 @@ static int32_t _core_mqtt_subunsub(core_mqtt_handle_t *mqtt_handle, char *topic,
pkt[idx++] = (uint8_t)((packet_id >> 8) & 0x00FF);
pkt[idx++] = (uint8_t)((packet_id) & 0x00FF);
- if (_core_mqtt_5_feature_is_enabled(mqtt_handle)) {
+ if (_core_mqtt_5_feature_is_enabled(mqtt_handle) && NULL != general_property) {
_core_write_general_prop(pkt, &idx, general_property, property_len_array, property_len_offset);
}
