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

Invalid teamcolors throw an NPE in the console rather than an error message "invalid color"

XMLWordPrintable

    • Confirmed

      Here is the event log:

      /scoreboard teams add
      2013-06-01 15:59:45 [INFO] Usage: /scoreboard teams add <name> [display name ...
      ]
      /scoreboard teams add server
      2013-06-01 15:59:50 [INFO] Added new team 'server' successfully
      /scoreboard teams option color pink
      2013-06-01 16:00:01 [INFO] No team was found by the name 'color'
      /scoreboard teams option server color pink
      2013-06-01 16:00:06 [INFO] An unknown error occurred while attempting to perform
       this command
      java.lang.NullPointerException
              at hr.d(SourceFile:264)
              at hr.b(SourceFile:138)
              at y.a(SourceFile:52)
              at hz.an(SourceFile:289)
              at hz.r(SourceFile:257)
              at net.minecraft.server.MinecraftServer.q(SourceFile:397)
              at net.minecraft.server.MinecraftServer.run(SourceFile:331)
              at gp.run(SourceFile:573)
      /scoreboard teams option server color
      2013-06-01 16:00:13 [INFO] Usage: Valid values for option color are: black, dark
      _blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue
      , green, aqua, red, light_purple, yellow, white and reset
      /scoreboard teams option server color pink
      2013-06-01 16:00:17 [INFO] An unknown error occurred while attempting to perform
       this command
      java.lang.NullPointerException
              at hr.d(SourceFile:264)
              at hr.b(SourceFile:138)
              at y.a(SourceFile:52)
              at hz.an(SourceFile:289)
              at hz.r(SourceFile:257)
              at net.minecraft.server.MinecraftServer.q(SourceFile:397)
              at net.minecraft.server.MinecraftServer.run(SourceFile:331)
              at gp.run(SourceFile:573)
      

      What happened was I tried to create a team with the color of pink.
      It resulted in no crash, but this error serverside only.
      Also cant be done with players, but there isn't the stacktrace.
      EDIT: clicking create wont insert this?
      Sorry if bugs are being spammed.

            evilseph EvilSeph (Warren Loo)
            pokechu22 [Mod] Pokechu22
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: