Skip to content

Commit

Permalink
Merge pull request #25 from eclipse-ecal/service-impl-bug
Browse files Browse the repository at this point in the history
service implementation nullptr issue
  • Loading branch information
rex-schilasky authored Feb 19, 2024
2 parents 8afed82 + 4312d53 commit c732d17
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/src/service/ecal_service_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,10 @@ namespace eCAL
// blocking call, all responses will be returned in service_response_vec_
bool CServiceClientImpl::Call(const std::string& method_name_, const std::string& request_, int timeout_ms_, ServiceResponseVecT* service_response_vec_)
{
auto responses = CallBlocking(method_name_, request_, std::chrono::milliseconds(timeout_ms_));
if(service_response_vec_ == nullptr) return false;
service_response_vec_->clear();

if (service_response_vec_)
service_response_vec_->clear();

auto responses = CallBlocking(method_name_, request_, std::chrono::milliseconds(timeout_ms_));
if (!responses)
{
return false;
Expand Down

0 comments on commit c732d17

Please sign in to comment.