Bugzilla – Bug 340
OnOff crashes if Stop() is called without Start() having been called before
Last modified: 2008-10-27 15:13:17 UTC
145 void OnOffApplication::StopApplication() // Called at time specified by Stop 146 { 147 NS_LOG_FUNCTION_NOARGS (); 148 149 CancelEvents (); 150 m_socket->Close (); 151 } If the application hasn't started, m_socket is NULL. Maybe it's better to add an assert, not sure.
it seems that we can trivially check for m_socket != 0
changeset 3819 37b316422064