From b2ea7ba9b215009d0ecf47cee8e2ff4a186101b6 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 17 Sep 2009 11:07:58 +0000 Subject: [PATCH] removed reference to potentially non-existing mote ID interface: the mote getID() method should instead be used --- .../java/se/sics/cooja/interfaces/Mote2MoteRelations.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/interfaces/Mote2MoteRelations.java b/tools/cooja/java/se/sics/cooja/interfaces/Mote2MoteRelations.java index d75e0c35e..1e0358c17 100644 --- a/tools/cooja/java/se/sics/cooja/interfaces/Mote2MoteRelations.java +++ b/tools/cooja/java/se/sics/cooja/interfaces/Mote2MoteRelations.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: Mote2MoteRelations.java,v 1.1 2009/02/26 13:31:25 fros4943 Exp $ + * $Id: Mote2MoteRelations.java,v 1.2 2009/09/17 11:07:58 fros4943 Exp $ */ package se.sics.cooja.interfaces; @@ -121,11 +121,7 @@ public class Mote2MoteRelations extends MoteInterface { Mote destinationMote = null; Mote[] allMotes = Mote2MoteRelations.this.mote.getSimulation().getMotes(); for (Mote m: allMotes) { - if (m.getInterfaces().getMoteID() == null) { - continue; - } - - if (id.equals("" + m.getInterfaces().getMoteID().getMoteID())) { + if (id.equals("" + m.getID())) { destinationMote = m; break; }