Elikill58 / Negativity

Github of Negativity, a Minecraft AntiCheat. Premium at 8€:
https://spigotmc.org/resources/86874/
241 stars 65 forks source link

[Bug] obj null warning when player joins or leaves #388

Closed Josh65-2201 closed 1 year ago

Josh65-2201 commented 1 year ago

Which platform are you using ?

Paper

Versions of Negativity and of the server

Negativity: 2.6.1 Server: Paper 1.18.2 build 388

Step to reproduce

  1. Join/leave game
  2. See console error

Errors / Logs

[23:39:07 WARN]: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "obj" is null
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.PacketContent$ContentModifier.<init>(PacketContent.java:133)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.PacketContent.getSpecificModifier(PacketContent.java:42)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.spigot.nms.SpigotVersionAdapter.getChannel(SpigotVersionAdapter.java:158)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.spigot.listeners.PacketListeners.getChannel(PacketListeners.java:35)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.nms.channels.netty.NettyPacketListener.addChannel(NettyPacketListener.java:78)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.nms.channels.netty.NettyPacketListener.join(NettyPacketListener.java:42)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.spigot.listeners.PacketListeners.onPlayerJoin(PacketListeners.java:22)
[23:39:07 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor429.execute(Unknown Source)
[23:39:07 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75)
[23:39:07 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[23:39:07 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[23:39:07 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669)
[23:39:07 WARN]:        at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:363)
[23:39:07 WARN]:        at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:305)
[23:39:07 WARN]:        at net.minecraft.server.network.PlayerConnection.c(PlayerConnection.java:305)
[23:39:07 WARN]:        at net.minecraft.network.NetworkManager.a(NetworkManager.java:567)
[23:39:07 WARN]:        at net.minecraft.server.network.ServerConnection.c(ServerConnection.java:231)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1623)
[23:39:07 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1456)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1226)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[23:39:07 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
[23:39:07 WARN]: java.lang.NullPointerException: Cannot invoke "io.netty.channel.Channel.pipeline()" because "channel" is null
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.nms.channels.netty.NettyPacketListener.addChannel(NettyPacketListener.java:83)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.api.packets.nms.channels.netty.NettyPacketListener.join(NettyPacketListener.java:42)
[23:39:07 WARN]:        at Negativity-2.6.1.jar//com.elikill58.negativity.spigot.listeners.PacketListeners.onPlayerJoin(PacketListeners.java:22)
[23:39:07 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor429.execute(Unknown Source)
[23:39:07 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75)
[23:39:07 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[23:39:07 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[23:39:07 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:669)
[23:39:07 WARN]:        at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:363)
[23:39:07 WARN]:        at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:305)
[23:39:07 WARN]:        at net.minecraft.server.network.PlayerConnection.c(PlayerConnection.java:305)
[23:39:07 WARN]:        at net.minecraft.network.NetworkManager.a(NetworkManager.java:567)
[23:39:07 WARN]:        at net.minecraft.server.network.ServerConnection.c(ServerConnection.java:231)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1623)
[23:39:07 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1456)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1226)
[23:39:07 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[23:39:07 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
Elikill58 commented 1 year ago

This issue appear for free version but not for premium. I can't reproduce with exact same build. Are you sure it's well this exact build?

Josh65-2201 commented 1 year ago

Yes I just got the dev build one today at 19:35 from dev build v2 channel on discord. It has the same issue.

Elikill58 commented 1 year ago

Fixed since few build