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

/tellraw @a throwing NPE when no players online

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.7.2, Minecraft 1.7.4
    • Fix Version/s: Minecraft 14w06b
    • Labels:
      None
    • Environment:

      Server running CentOS v6.4 64-bit and Oracle Java v1.7.0_45 64-bit.

    • Confirmation Status:
      Unconfirmed
    • Game Mode:
      Survival

      Description

      Command block on a timer runs "/tellraw @a <message>". When no players are online, here's what the console says:

      [07:49:44] [Server thread/ERROR]: Couldn't process command
      java.lang.NullPointerException
              at java.util.Collections.shuffle(Unknown Source) ~[?:1.7.0_45]
              at java.util.Collections.shuffle(Unknown Source) ~[?:1.7.0_45]
              at ad.c(SourceFile:127) ~[minecraft_server.1.7.2.jar:?]
              at ad.a(SourceFile:44) ~[minecraft_server.1.7.2.jar:?]
              at y.d(SourceFile:114) ~[minecraft_server.1.7.2.jar:?]
              at ba.b(SourceFile:35) ~[minecraft_server.1.7.2.jar:?]
              at z.a(SourceFile:58) [minecraft_server.1.7.2.jar:?]
              at afb.a(SourceFile:79) [minecraft_server.1.7.2.jar:?]
              at ain.a(SourceFile:49) [minecraft_server.1.7.2.jar:?]
              at mj.a(SourceFile:405) [minecraft_server.1.7.2.jar:?]
              at mj.b(SourceFile:134) [minecraft_server.1.7.2.jar:?]
              at net.minecraft.server.MinecraftServer.u(SourceFile:503) [minecraft_server.1.7.2.jar:?]
              at lj.u(SourceFile:265) [minecraft_server.1.7.2.jar:?]
              at net.minecraft.server.MinecraftServer.t(SourceFile:441) [minecraft_server.1.7.2.jar:?]
              at net.minecraft.server.MinecraftServer.run(SourceFile:358) [minecraft_server.1.7.2.jar:?]
              at ky.run(SourceFile:617) [minecraft_server.1.7.2.jar:?]
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sullytheunusual Sean Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: