converter: littles improvements. 16/23216/6
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 19 Nov 2019 15:44:38 +0000 (16:44 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 9 Jan 2020 14:55:03 +0000 (15:55 +0100)
Bug-AGL: SPEC-2988

Change-Id: I9198835b96c66c140f8b1d4167828302b9dc4959
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/binding/low-can-subscription.cpp

index 2cb5baf..c3a0b3f 100644 (file)
@@ -420,7 +420,7 @@ int low_can_subscription_t::open_socket(low_can_subscription_t &subscription, co
                else if(flags & J1939_PROTOCOL)
                {
                        pgn_t pgn = J1939_NO_PGN;
-                       if(subscription.signal_ != nullptr)
+                       if(subscription.signal_)
                        {
                                pgn = subscription.signal_->get_message()->get_id();
                                std::shared_ptr<utils::socketcan_j1939_data_t> socket = std::make_shared<utils::socketcan_j1939_data_t>();