[PE] Add extra checks to ensure OnDestroy doesn't throw #166
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IllusionMods/HSPlugins!166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ondes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull Request Overview
This PR adds defensive null checks to OnDestroy methods across multiple classes to prevent exceptions when objects are destroyed. The changes ensure that null reference exceptions don't occur during cleanup operations.
Key changes:
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
@ -578,27 +578,36 @@ namespace HSPE.AMModulespublic override void OnDestroy()This line should be protected with a null check for
_parentlike the other event unsubscriptions in the method. Currently it will throw a null reference exception if_parentis null when_isLoneCollideris true.