mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
bug fix:
radio logger generated null pointer exception
This commit is contained in:
parent
381ab927df
commit
30be98a575
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: StandardRadioMedium.java,v 1.9 2006/12/07 14:28:54 fros4943 Exp $
|
||||
* $Id: StandardRadioMedium.java,v 1.10 2006/12/11 12:20:06 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.radiomediums;
|
||||
@ -475,15 +475,15 @@ public class StandardRadioMedium extends RadioMedium {
|
||||
|
||||
pendingConnections = updatedPendingConnections;
|
||||
|
||||
if (myLogger != null) {
|
||||
for (RadioConnection conn : lastTickConnections)
|
||||
myLogger.logConnection(conn);
|
||||
}
|
||||
|
||||
// Radio medium has changed, notifing below
|
||||
radioMediumObservable.setRadioMediumChanged();
|
||||
}
|
||||
|
||||
if (myLogger != null) {
|
||||
for (RadioConnection conn : lastTickConnections)
|
||||
myLogger.logConnection(conn);
|
||||
}
|
||||
|
||||
// Set signal strengths on all radios
|
||||
for (Radio radio : registeredRadios) {
|
||||
if (radio.isTransmitting())
|
||||
|
Loading…
Reference in New Issue
Block a user