diff --git a/source/RobotAPI/components/ArViz/Client/Client.h b/source/RobotAPI/components/ArViz/Client/Client.h
index 53c33e17b0c22445e25dfc1e50c080d46026a2ee..9ba175fda6fdfbcd6f786484f8fc9c9aa3d801ae 100644
--- a/source/RobotAPI/components/ArViz/Client/Client.h
+++ b/source/RobotAPI/components/ArViz/Client/Client.h
@@ -107,7 +107,7 @@ namespace viz
         {
             std::vector<viz::Layer> layers;
             viz::Layer& newLayer = layers.emplace_back(this->layer(name));
-            if (element != nullptr)
+            if (element)
             {
                 newLayer.add(element);
             }