Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2779

NPE when spawning fireworks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 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]

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

              Created:
              Updated:
              Resolved: