When unsubscribing but no diagnostic subscription made there
is an exception when cleaning empty requests vector.
Change-Id: I40bdd01969fd1a1c6fecb0a438c46d0df584de83
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
/// @param[in] force - Force the cleaning or not ?
void diagnostic_manager_t::cleanup_request(active_diagnostic_request_t* entry, bool force)
{
- if((force || (entry != nullptr && entry->response_received())))
+ if(entry != nullptr && (force || entry->response_received()))
{
char request_string[128] = {0};
diagnostic_request_to_string(&entry->get_handle()->request,