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 caused by unregistered ClassInfo #7085

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

Sparky200
Copy link

Description

This PR fixes a null pointer caused when an unregistered ClassInfo is in an accepted changes list, and the change type is not valid. There may be other execution paths affected by this.

The proposed change will use the class' full path (or primitive name) as a fallback value in the error message if there is no ClassInfo.


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Sep 17, 2024
@Moderocky Moderocky added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Sep 17, 2024
@Moderocky Moderocky merged commit 96dce83 into SkriptLang:dev/patch Sep 17, 2024
6 checks passed
@Sparky200 Sparky200 deleted the patch-1 branch September 17, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants