[HeterochromiaFix] Fixed null reference exception #61
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/IllusionFixes!61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-null-reference"
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?
Fixed an exception when calling LoadFile in FreeH.
It will not reproduce if I do not have the plugin in my local environment. However, the fix itself is not a major disadvantage, and it is a good preparation for future changes.
@ -16,8 +16,12 @@ namespace IllusionFixes#endifinternal static void LoadFileLimitedPostfix(ChaFileControl __instance)This might still throw a nullref after exiting maker twice, since the Instrance can be a destroyed Unity Object that is not detected as null by the ? operator. Using a
!= nullavoids the issue.alternatively
@ -16,8 +16,12 @@ namespace IllusionFixes#endifinternal static void LoadFileLimitedPostfix(ChaFileControl __instance)Thanks for the review. Fixed.
This spec is a Unity trap.