NPE when spawning fireworks

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      Running the latest Spigot 1.11 server jar, tried on both Windows 10 and Ubuntu 14.04 running Java 8.

      This server is running CraftBukkit version git-Spigot-d60de0a-a951a88 (MC: 1.11) (Implementing API version 1.11-R0.1-SNAPSHOT)

      I am using the following line of code to spawn a firework.
      location.getWorld().spawn(location, Firework.class);

      Which generated an exception java.lang.NullPointerException; with a stack trace as follows (executed from below to top):
      at net.minecraft.server.v1_11_R1.EntityFireworks.<init>(EntityFireworks.java:33) ~[spigot.jar:git-Spigot-d60de0a-a951a88]
      at org.bukkit.craftbukkit.v1_11_R1.CraftWorld.createEntity(CraftWorld.java:1150) ~[spigot.jar:git-Spigot-d60de0a-a951a88]
      at org.bukkit.craftbukkit.v1_11_R1.CraftWorld.spawn(CraftWorld.java:1183) ~[spigot.jar:git-Spigot-d60de0a-a951a88]
      at org.bukkit.craftbukkit.v1_11_R1.CraftWorld.spawn(CraftWorld.java:850) ~[spigot.jar:git-Spigot-d60de0a-a951a88]

            Assignee:
            Unassigned
            Reporter:
            Sander Gielisse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: