From 2b5846e967be5af8c5015804f5cfdb4f93cccf3a Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 23 Oct 2006 16:14:02 +0000 Subject: [PATCH] minor bug fix. text area may still be null when log interfaces update --- tools/cooja/java/se/sics/cooja/plugins/LogListener.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java index 7b45f007a..b3ba23638 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java +++ b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: LogListener.java,v 1.1 2006/08/21 12:13:08 fros4943 Exp $ + * $Id: LogListener.java,v 1.2 2006/10/23 16:14:02 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -70,6 +70,9 @@ public class LogListener extends VisPlugin { // Log observer logObserver = new Observer() { public void update(Observable obs, Object obj) { + if (logTextArea == null) + return; + logTextArea.append("\n"); Mote mote = (Mote) obj;