Skip to content

Conversation

@triagonal
Copy link
Member

Information

This PR fixes a long-standing bug where using the a: or r: modes in /powertool with no commands already set on the item would result in an NPE. To prevent this, the powertool command list is now immediately initialized if it doesn't exist upon retrieval.

Details

Environments tested:

OS: Windows 10 20H2
Java version: openjdk version "11.0.10"

  • Most recent Paper version (1.16.5-R0.1-SNAPSHOT git-Paper-778 (MC: 1.16.5))

@triagonal triagonal added module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX. labels Jun 26, 2021
@triagonal triagonal force-pushed the fix/powertool-npes branch from 68a6293 to 17a7b75 Compare June 26, 2021 16:10
@mdcfe mdcfe added this to the 2.19.0 milestone Jun 26, 2021
@mdcfe mdcfe enabled auto-merge (squash) June 26, 2021 20:10
@mdcfe mdcfe merged commit 3f36a52 into EssentialsX:2.x Jun 26, 2021
@triagonal triagonal deleted the fix/powertool-npes branch June 27, 2021 06:49
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
This PR fixes a long-standing bug where using the `a:` or `r:` modes in `/powertool` with no commands already set on the item would result in an NPE. To prevent this, the powertool command list is now immediately initialized if it doesn't exist upon retrieval.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants