rodel77 / ModBanner

A Minecraft + Sponge mod to ban unwanted mods
https://forums.spongepowered.org/t/no-entry-sign-modbanner-ban-undesirable-mods/17681
GNU General Public License v3.0
4 stars 2 forks source link

NPE when vanilla clients connect #2

Closed BrainStone closed 7 years ago

BrainStone commented 7 years ago

When Vanilla Clients connect this exception is thrown:

[10:32:42] [Server thread/INFO]: [+] The_BrainStone
[10:32:42] [Netty Epoll Server IO #2/INFO] [FML]: Opening channel which already seems to have a state set. This is a vanilla connection. Handshake handler will stop now
[10:32:43] [Server thread/INFO]: [STDERR]: java.lang.NullPointerException
[10:32:43] [Server thread/INFO]: [STDERR]:      at java.util.Collections$UnmodifiableMap.<init>(Collections.java:1446)
[10:32:43] [Server thread/INFO]: [STDERR]:      at java.util.Collections.unmodifiableMap(Collections.java:1433)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.getModList(NetworkDispatcher.java:312)
[10:32:43] [Server thread/INFO]: [STDERR]:      at mx.com.rodel.modbanner.PlayerModsAPI.getPlayerMods(PlayerModsAPI.java:24)
[10:32:43] [Server thread/INFO]: [STDERR]:      at mx.com.rodel.modbanner.Main.lambda$on$0(Main.java:72)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.api.scheduler.Task$Builder.lambda$execute$0(Task.java:139)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:187)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SyncScheduler.executeTaskRunnable(SyncScheduler.java:81)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SchedulerBase.startTask(SchedulerBase.java:180)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SchedulerBase.processTask(SchedulerBase.java:166)
[10:32:43] [Server thread/INFO]: [STDERR]:      at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SchedulerBase.runTick(SchedulerBase.java:109)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SyncScheduler.tick(SyncScheduler.java:51)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.common.scheduler.SpongeScheduler.tickSyncScheduler(SpongeScheduler.java:185)
[10:32:43] [Server thread/INFO]: [STDERR]:      at org.spongepowered.mod.SpongeMod.onTick(SpongeMod.java:249)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_SpongeMod_onTick_ServerTickEvent.invoke(.dynamic)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:635)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:591)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraftforge.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:274)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
[10:32:43] [Server thread/INFO]: [STDERR]:      at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
[10:32:43] [Server thread/INFO]: [STDERR]:      at java.lang.Thread.run(Thread.java:748)
rodel77 commented 7 years ago

Fixed your next version!

BrainStone commented 7 years ago

@rodel77, it's still not fixed. Same error.

rodel77 commented 7 years ago

Refixed! And now tested