Invalid teamcolors throw an NPE in the console rather than an error message "invalid color"
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.
Linked Issues
Created Issue:
Cant set teams to pink, errors.
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.Environment
Multiplayer server
Removed Environment:
Multiplayer server
Changed Summary:
Cant set teams to pink, errors.Invalid teamcolors throw an NPE in the console rather than an error message "invalid color"
Added Linked Issues:
relates to
Added Assignee:
EvilSeph (Warren Loo)
Added Fixed Versions: 13w36a
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 resetPink is an invalid value. But rather than showing an NPE it should tell it's an invalid value.
I can confirm that part.
Ok, I tried "adjksaldfjl" as a color, it did the same error. Interesting.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Yes.