Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 6, 2023

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 added this to In progress in Discord module via automation May 6, 2023
@JRoy JRoy merged commit 069ebfc into EssentialsX:2.x May 6, 2023
1 check passed
Discord module automation moved this from In progress to Done 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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants