-
Bug
-
Resolution: Fixed
-
1.18.2, 1.19.3, 23w05a
-
Confirmed
-
Crash, Dedicated Server
-
Important
-
Platform
The bug
Attempting to start a server with square brackets missing in banned-ips.json causes a crash.
Stack trace
Description: Exception in server tick loop java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonArray.iterator()" because "$$1" is null at ags.f(SourceFile:121) at acw.y(SourceFile:76) at acw.<init>(SourceFile:25) at acx.e(SourceFile:172) at net.minecraft.server.MinecraftServer.w(SourceFile:670) at net.minecraft.server.MinecraftServer.a(SourceFile:273) at java.base/java.lang.Thread.run(Thread.java:833)
Code analysis
Code analysis by apple502j can be found in this comment.