diff --git a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
index b77ea0e364cabff8a1837d9adf239833ffbcbd73..8b151a5fd9238c15ff77e654d3642a41398b0bc5 100644
--- a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
+++ b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx
@@ -47,7 +47,7 @@ export default withTracker(() => {
     },
   });
 
-  if (meeting.lockSettingsProps.hideUserList && currentUser.role === USER_CONFIG.role_viewer) {
+  if (meeting.lockSettingsProps.hideUserList && currentUser?.role === USER_CONFIG.role_viewer) {
     selector.role = { $ne: USER_CONFIG.role_viewer };
   }