Fix NPE if you cold boot vector on a URL with a room which you were invited to but not yet joined.

This commit is contained in:
Kegan Dougal 2015-10-21 14:45:39 +01:00
parent feaf2a319b
commit d4a5ab11d4

View file

@ -160,7 +160,7 @@ module.exports = {
},
roomMembers: function(limit) {
var all_members = this.memberDict;
var all_members = this.memberDict || {};
var all_user_ids = Object.keys(all_members);
if (this.memberSort) all_user_ids.sort(this.memberSort);