From 4deb687209b453f40e487ecf6998308eb5cb74be Mon Sep 17 00:00:00 2001 From: Sebastian Schinabeck Date: Fri, 15 Nov 2013 19:39:46 +0100 Subject: [PATCH] deleted unneeded if getStringArrayValue never returns null --- .../java/org/contikios/cooja/plugins/Visualizer.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/cooja/java/org/contikios/cooja/plugins/Visualizer.java b/tools/cooja/java/org/contikios/cooja/plugins/Visualizer.java index 47387c9f3..69f5022e9 100644 --- a/tools/cooja/java/org/contikios/cooja/plugins/Visualizer.java +++ b/tools/cooja/java/org/contikios/cooja/plugins/Visualizer.java @@ -212,12 +212,11 @@ public class Visualizer extends VisPlugin implements HasQuickHelp { /* Register external visualizers */ String[] skins = gui.getProjectConfig().getStringArrayValue(Visualizer.class, "SKINS"); - if (skins != null) { - for (String skinClass: skins) { - Class skin = gui.tryLoadClass(this, VisualizerSkin.class, skinClass); - if (registerVisualizerSkin(skin)) { - logger.info("Registered external visualizer: " + skinClass); - } + + for (String skinClass: skins) { + Class skin = gui.tryLoadClass(this, VisualizerSkin.class, skinClass); + if (registerVisualizerSkin(skin)) { + logger.info("Registered external visualizer: " + skinClass); } }