internet: Avoid dereferencing null pointer

This commit is contained in:
Tom Henderson
2021-01-29 17:34:17 -08:00
parent 4847b379df
commit 5f4926baeb

View File

@@ -216,7 +216,7 @@ Ipv6ListRouting::PrintRoutingTable (Ptr<OutputStreamWrapper> stream, Time::Unit
*stream->GetStream () << "Node: " << m_ipv6->GetObject<Node> ()->GetId ()
<< ", Time: " << Now().As (unit)
<< ", Local time: " << GetObject<Node> ()->GetLocalTime ().As (unit)
<< ", Local time: " << m_ipv6->GetObject<Node> ()->GetLocalTime ().As (unit)
<< ", Ipv6ListRouting table" << std::endl;
for (Ipv6RoutingProtocolList::const_iterator i = m_routingProtocols.begin ();
i != m_routingProtocols.end (); i++)