Skip to content

Cannot complete PlayerProfiles: NullPointerException #11447

@NonSwag

Description

@NonSwag

Expected behavior

no npe when completing a profile

Observed/Actual behavior

npe when completing a profile

Steps/models to reproduce

  1. create a profile with only a name
  2. complete the profile

Plugin and Datapack List

irrelevant

Paper version

[16:45:45 INFO]: Checking version, please wait...
[16:45:45 INFO]: This server is running Paper version 1.21.1-110-master@6d7a438 (2024-09-28T22:14:12Z) (Implementing API version 1.21.1-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.1-85-c5a1066 (MC: 1.21.1)

Other

CraftPlayerProfile#getId returns null when the profile id equals NIL_UUID which is correct
image
The complete method uses this.getId() instead of profile.getId()
image
MinecraftSessionService#fetchProfile requires a not-null profileId
image
This causes the NullPointerException
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.21.1Game version 1.21.1

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions