Skip to content

Commit 470f5ff

Browse files
committed
Add
1 parent 1c25908 commit 470f5ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/fr/xephi/authme/listener/GuiCaptchaHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.comphenix.protocol.events.ListenerPriority;
55
import com.comphenix.protocol.events.PacketAdapter;
66
import com.comphenix.protocol.events.PacketEvent;
7+
import com.earth2me.essentials.libs.checkerframework.checker.nullness.qual.NonNull;
78
import fr.xephi.authme.AuthMe;
89
import fr.xephi.authme.api.v3.AuthMeApi;
910
import fr.xephi.authme.settings.properties.HooksSettings;
@@ -69,6 +70,7 @@ public void onInventoryClick(InventoryClickEvent event) {
6970
}
7071
return;
7172
}
73+
/* Line 74 may throw NullPointerException, we can't solve it for now.*/
7274
if (Objects.requireNonNull(event.getCurrentItem()).getType().equals(Material.REDSTONE_BLOCK)) {
7375
event.setCancelled(true);
7476
closeReasonMap.put(player, "verified");

0 commit comments

Comments
 (0)