mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Fixed NullPointerException in TradeAcceptEvent
This commit is contained in:
parent
1eddce9546
commit
bfefe5887c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user