Urgent Mercury EMU Error

Diddy8000

Member
Aug 22, 2011
78
18
Hello,

It only started happening today and it happened twice i have no idea how to fix it but this error happens and disconnects all the users and doesn't let them back on you just get stuck at 87%.

Error during removing user from room:System.NullReferenceException: Object reference not set to an instance of an object. at Mercury.HabboHotel.Users.Messenger.HabboMessenger.OnStatusChanged(Boolean notification) in c:\Users\Joshua\Desktop\Mercurynew\HabboHotel\Users\Messenger\HabboMessenger.cs:line 73
at Mercury.HabboHotel.Rooms.RoomUserManager.RemoveUserFromRoom(GameClient Session, Boolean NotifyClient, Boolean NotifyKick) in c:\Users\Joshua\Desktop\Mercurynew\HabboHotel\Rooms\RoomUserManager.cs:line 539

Now i know something is null on thislocation


NullReferenceException
HabboMessenger.cs:line 73

This is the void.
internal void OnStatusChanged(bool notification)
{
if (this.friends == null)
{
return;
}
IEnumerable<GameClient> clientsById = MercuryEnvironment.GetGame().GetClientManager().GetClientsById(this.friends.Keys);
foreach (GameClient current in clientsById)
{
if (current != null && current.GetHabbo() != null && current.GetHabbo().GetMessenger() != null)
{
current.GetHabbo().GetMessenger().UpdateFriend(this.UserId, current, true);
this.UpdateFriend(current.GetHabbo().Id, current, notification);
}
}
}

And line 33 is this
this.UpdateFriend(current.GetHabbo().Id, current, notification);

I just have no idea how to go about fixing this. Any help would be very good!
 

Users who are viewing this thread

Top