diff --git a/lib/room.js b/lib/room.js
index <HASH>..<HASH> 100644
--- a/lib/room.js
+++ b/lib/room.js
@@ -192,9 +192,11 @@ class Room {
         let user;
         const usersArray = [];
 
-        for (let i = 0; i < ids.length; i++) {
-            user = this.getUser(ids[i]);
-            if (user != null) usersArray.push(user);
+        if (ids) {
+            for (let i = 0; i < ids.length; i++) {
+                user = this.getUser(ids[i]);
+                if (user != null) usersArray.push(user);
+            }
         }
 
         return usersArray;
Fix: Do not assume we were given a valid array for room.usersToArray

Fixes #<I> (#<I>)