diff --git a/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.h b/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.h
index daca8523831d72d013f01a8f00cb58cb92ecf340..a5289ac8b10aa7a7d184c3e4922c26fed5dabcc4 100644
--- a/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.h
+++ b/source/RobotAPI/gui-plugins/ArViz/LayerInfoTree.h
@@ -111,7 +111,7 @@ namespace armarx
 
     private:
 
-        QTreeWidget* widget;
+        QTreeWidget* widget = nullptr;
         /// Connections to the current widget.
         QVector<QMetaObject::Connection> widgetConnections;