Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-249702

Server crash when attempting to start a server with malformatted banned-ips.json

XMLWordPrintable

    • 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.

            Unassigned Unassigned
            justin2k justin barrett
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: