Skip to content

Commit

Permalink
Fix null check in PeriodicSender (#140)
Browse files Browse the repository at this point in the history
Null pointer dereference caused by a refactor in a82f2cc
  • Loading branch information
mosamadeeb authored Oct 25, 2023
1 parent da17109 commit 6dffe61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/periodic-sender.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ PeriodicSender::StartApplication(void)
NS_LOG_FUNCTION(this);

// Make sure we have a MAC layer
if (m_mac)
if (!m_mac)
{
// Assumes there's only one device
Ptr<LoraNetDevice> loraNetDevice = m_node->GetDevice(0)->GetObject<LoraNetDevice>();
Expand Down

0 comments on commit 6dffe61

Please sign in to comment.