diff --git a/controllers/participant.js b/controllers/participant.js
index 902bfb91e8e97a6dc0ddc3d7028fff9e0c09f084..e90f55447dbf7107fb5bc7cd94887dfb949c4d03 100644
--- a/controllers/participant.js
+++ b/controllers/participant.js
@@ -75,7 +75,10 @@ exports.createParticipant = async (req, res, next) => {
     const meeting = await getMeetingById(meetingId);
     const currentParticipants =
       await getNumOfParticipantsByMeetingId(meetingId);
-    if (currentParticipants >= meeting.maxParticipants) {
+    if (
+      meeting.maxParticipants &&
+      currentParticipants >= meeting.maxParticipants
+    ) {
       throw createMaxParticipantsError();
     }