diff --git a/module/Agent/src/Entity/Db/Agent.php b/module/Agent/src/Entity/Db/Agent.php
index 719289a2e343ccd3366e33e5c659f8d6ca3d7c16..5a94523d35721f6ef084c40156b6138aa82be09c 100644
--- a/module/Agent/src/Entity/Db/Agent.php
+++ b/module/Agent/src/Entity/Db/Agent.php
@@ -194,7 +194,10 @@ class Agent implements
         if ($structure === $niveau2) {
             return $structure->getLibelleLong();
         }
-        return $niveau2->getLibelleLong() . " > " . $structure->getLibelleLong();
+        $libelle = '';
+        if ($niveau2) $libelle .= $structure->getLibelleLong(). " > ";
+        $libelle.= $structure->getLibelleLong();
+        return $libelle;
     }
 
     /** @return AgentEchelon[] */