Player#setBedSpawnLocation - NullPointerException

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

      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.

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

              Created:
              Updated:
              Resolved: