From 91a4322d2b99b0ae5e876d064c1197336a79e7cb Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 5 Nov 2009 11:54:59 +0000 Subject: [PATCH] minor fix: show rime address when no IP address was found --- .../se/sics/cooja/plugins/skins/AddressVisualizerSkin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/skins/AddressVisualizerSkin.java b/tools/cooja/java/se/sics/cooja/plugins/skins/AddressVisualizerSkin.java index 88baaf443..e2ced9832 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/skins/AddressVisualizerSkin.java +++ b/tools/cooja/java/se/sics/cooja/plugins/skins/AddressVisualizerSkin.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: AddressVisualizerSkin.java,v 1.3 2009/10/28 15:16:21 fros4943 Exp $ + * $Id: AddressVisualizerSkin.java,v 1.4 2009/11/05 11:54:59 fros4943 Exp $ */ package se.sics.cooja.plugins.skins; @@ -129,7 +129,7 @@ public class AddressVisualizerSkin implements VisualizerSkin { private static String getMoteString(Mote mote) { IPAddress ipAddr = mote.getInterfaces().getIPAddress(); - if (ipAddr != null) { + if (ipAddr != null && ipAddr.getIPString() != null) { return ipAddr.getIPString(); }