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

Player#setBedSpawnLocation - NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • OS: Ubuntu Server 18.04.3 (Linux: 4.15.0-70-generic)
      Java: Oracle JRE 1.8.0 update 161 build 12

    • git-Spigot-379750e-eaf0bac
    • Yes

      When attempting to clear a player's bed spawn using Player#setBedSpawnLocation(Location), the server throws a NullPointerException
      , originating from this line in CraftPlayer.

      It's trying to get the yaw component of a location which has been tested to be null.

      The attached plugin has one command (/deletebed) that will use the method mentioned above to remove a player's bed spawn location. You will need to have set your bed spawn before using the command for it to work.

            Unassigned Unassigned
            willies952002 William Surgeon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: