mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
room is nullable here
This commit is contained in:
parent
f70d05ae49
commit
8f4c53504b
@ -18,7 +18,7 @@ public class InteractionVoteCounter extends HabboItem {
|
||||
|
||||
private boolean frozen;
|
||||
private int votes;
|
||||
private List<Integer> votedUsers;
|
||||
private final List<Integer> votedUsers;
|
||||
|
||||
public InteractionVoteCounter(ResultSet set, Item baseItem) throws SQLException {
|
||||
super(set, baseItem);
|
||||
@ -69,7 +69,7 @@ public class InteractionVoteCounter extends HabboItem {
|
||||
|
||||
@Override
|
||||
public void onClick(GameClient client, Room room, Object[] objects) throws Exception {
|
||||
if (!((client != null && room != null && room.hasRights(client.getHabbo())) || (objects.length >= 2 && objects[1] instanceof WiredEffectType)))
|
||||
if (room == null || !((client != null && room.hasRights(client.getHabbo())) || (objects.length >= 2 && objects[1] instanceof WiredEffectType)))
|
||||
return;
|
||||
|
||||
this.frozen = !this.frozen;
|
||||
|
Loading…
Reference in New Issue
Block a user