Fixed NullPointerException in TradeAcceptEvent

This commit is contained in:
Beny 2019-05-18 14:17:27 +01:00
parent 1eddce9546
commit bfefe5887c

View File

@ -10,6 +10,10 @@ public class TradeAcceptEvent extends MessageHandler
public void handle() throws Exception
{
Habbo habbo = this.client.getHabbo();
if(habbo == null || habbo.getHabboInfo() == null || habbo.getHabboInfo().getCurrentRoom() == null)
return;
RoomTrade trade = habbo.getHabboInfo().getCurrentRoom().getActiveTradeForHabbo(habbo);
if(trade == null)