Fix NullPointerException in RedeemClothingEvent

This commit is contained in:
Alejandro 2019-05-26 19:27:11 +03:00
parent 4981d967eb
commit ab65865d73

View File

@ -29,7 +29,7 @@ public class RedeemClothingEvent extends MessageHandler
{
HabboItem item = this.client.getHabbo().getHabboInfo().getCurrentRoom().getHabboItem(itemId);
if(item.getUserId() == this.client.getHabbo().getHabboInfo().getId())
if(item != null && item.getUserId() == this.client.getHabbo().getHabboInfo().getId())
{
if(item instanceof InteractionClothing)
{