From 8c16d29d5e5f4a070eda325f72f9b89661227ef7 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 5 Sep 2006 14:12:48 +0000 Subject: [PATCH] minor bug fix --- tools/cooja/java/se/sics/cooja/plugins/SimInformation.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/SimInformation.java b/tools/cooja/java/se/sics/cooja/plugins/SimInformation.java index fe35be0ca..ad24635ae 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/SimInformation.java +++ b/tools/cooja/java/se/sics/cooja/plugins/SimInformation.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: SimInformation.java,v 1.1 2006/08/21 12:13:07 fros4943 Exp $ + * $Id: SimInformation.java,v 1.2 2006/09/05 14:12:48 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -86,7 +86,8 @@ public class SimInformation extends VisPlugin { // Register as tick observer simulation.addTickObserver(tickObserver = new Observer() { public void update(Observable obs, Object obj) { - labelSimTime.setText("" + simulation.getSimulationTime()); + if (labelSimTime != null) + labelSimTime.setText("" + simulation.getSimulationTime()); } });