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

Called getAttachedFace() on a Material.Sign object returns null, which causes a NPE in chained methods.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • Linux Mint 17.2

    • Bukkit

      It appears the the getData() data for Material.Sign may not be getting set correctly. The `byte data = getData()` line in Sign.getAttachedFace() is returning 0. Because the switch statement begins with `case 0x2` the method eventually returns a null as no case statement will match currently match 0. This causes a a NPE later when calling getFacing() due to the final condition in the method being return getAttachedFace().getOppositeFace();.

      (this is my first stab at submitting a bug so hopefully all this makes sense)

            Unassigned Unassigned
            risingfish Z Feuerborn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: