From 79b658dd61ece937246fb8ca01848b941388291c Mon Sep 17 00:00:00 2001
From: apvrille <ludovic.apvrille@eurecom.fr>
Date: Tue, 13 Feb 2018 09:48:20 +0100
Subject: [PATCH] Bug on status information

---
 src/main/java/ui/TGComponent.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/ui/TGComponent.java b/src/main/java/ui/TGComponent.java
index 393da7a6ef..5576a0745f 100755
--- a/src/main/java/ui/TGComponent.java
+++ b/src/main/java/ui/TGComponent.java
@@ -310,8 +310,11 @@ public abstract class TGComponent implements CDElement, GenericTree {
 
     public String getStatusInformation() {
 
-        if (this instanceof WithAttributes)
-            return ((WithAttributes)(this)).getAttributes().replaceAll("\n", " / ");
+        if (this instanceof WithAttributes) {
+            String tmp = ((WithAttributes) (this)).getAttributes();
+            if (tmp != null)
+                return tmp.replaceAll("\n", " / ");
+        }
 
         return " ";
     }
-- 
GitLab