Skip to content

Fix NPE caused by unregistered ClassInfo#7085

Merged
Moderocky merged 1 commit intoSkriptLang:dev/patchfrom
Sparky200:patch-1
Sep 17, 2024
Merged

Fix NPE caused by unregistered ClassInfo#7085
Moderocky merged 1 commit intoSkriptLang:dev/patchfrom
Sparky200:patch-1

Conversation

@Sparky200
Copy link
Contributor

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
@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