How to check the number of users in a room?

0 votes

I am trying to get the number of users in a room at an instance. I have called getLiveRoomInfo on my room and then in onGetLiveRoomInfoDone I have assumed  I am meant to call event.getJoinedUsers(). I have assigned this to a variable but I cannot use the length function on this as it crashes my code. Any ideas?
asked Jun 21, 2014 in AppWarp by Kiaan Pillay (20 points)

1 Answer

0 votes
you should check for null before calling the length function. Its null if

1) the result code is not success

2) the number of users is 0
answered Jun 21, 2014 by dhruvc (1,099 points)
That was exactly it! You legend! Thank you, the number of users was 0.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on