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

scoreboard @r NullPointerException when server empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • Minecraft 13w36b, Minecraft 1.7.4
    • Linux 2.6.32-5-amd64 x86_64
      Debian GNU/Linux 6.0.6 (squeeze)

      java version "1.7.0_10"
      Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
    • Confirmed

      put a timer attached to command blocks with these commands in order:

      /scoreboard objectives remove ActivePlayer
      /scoreboard objectives add ActivePlayer dummy
      /scoreboard players set @r ActivePlayer 1

      Once the server goes empty, when the third command gets issued, the following NPE is displayed in the console:

      java.lang.NullPointerException
      >       at java.util.Collections.shuffle(Collections.java:497)
      >       at java.util.Collections.shuffle(Collections.java:469)
      >       at ac.c(SourceFile:126)
      >       at ac.a(SourceFile:43)
      >       at x.e(SourceFile:124)
      >       at iv.l(SourceFile:501)
      >       at iv.b(SourceFile:91)
      >       at y.a(SourceFile:55)
      >       at aud.a(SourceFile:45)
      >       at apo.a(SourceFile:48)
      >       at kd.a(SourceFile:404)
      >       at kd.b(SourceFile:131)
      >       at net.minecraft.server.MinecraftServer.t(SourceFile:455)
      >       at jd.t(SourceFile:262)
      >       at net.minecraft.server.MinecraftServer.s(SourceFile:398)
      >       at net.minecraft.server.MinecraftServer.run(SourceFile:332)
      >       at hr.run(SourceFile:575)

            Unassigned Unassigned
            meiskam meiskam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: