diff --git a/src/main/resources/templates/edition/student.html b/src/main/resources/templates/edition/student.html
index caf7130d188b15bfe871340f66c11d8172901747..f321d0fe09385bda75f239f6ab6c55e90c4c3662 100644
--- a/src/main/resources/templates/edition/student.html
+++ b/src/main/resources/templates/edition/student.html
@@ -112,7 +112,7 @@
                         </div>
                     </div>
 
-                    <div class="flex justify-end">
+                    <div class="flex justify-end" th:unless="${group == null}">
                         <button
                             th:if="${@authorizationService.canLeaveGroup(group.id)}"
                             class="button"