Skip to content

Fix NPE while syncing offline users for discord line module#5338

Merged
JRoy merged 2 commits intoEssentialsX:2.xfrom
JRoy:fix/some-link-offline-sync-stuff
May 6, 2023
Merged

Fix NPE while syncing offline users for discord line module#5338
JRoy merged 2 commits intoEssentialsX:2.xfrom
JRoy:fix/some-link-offline-sync-stuff

Conversation

@JRoy
Copy link
Member

@JRoy JRoy commented May 6, 2023

Only would happen for users who haven't joined
(or been loaded by different parts of the plugin)
since the last restart. This change first of all switches to a method to fetch users which will update the User base to the UUIDPlayer dummy base. Secondly, this change will not update the base of a User to a UUIDPlayer dummy unless the base is currently null (which would be the case in the condition described above).

Only would happen for users who haven't joined
(or been loaded by different parts of the plugin)
since the last restart. This change first of all switches to
a method to fetch users which will update the User base to the
UUIDPlayer dummy base. Secondly, this change will not update
the base of a User to a UUIDPlayer dummy unless the base is
currently null (which would be the case in the condition
described above).
@JRoy JRoy added the module: discord link Issues or PRs for the EssentialsDiscordLink module label May 6, 2023
@JRoy JRoy added this to the 2.20.0 milestone May 6, 2023
@JRoy JRoy merged commit 069ebfc into EssentialsX:2.x May 6, 2023
@JRoy JRoy deleted the fix/some-link-offline-sync-stuff branch May 6, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: discord link Issues or PRs for the EssentialsDiscordLink module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants