bouvet / bouvet/BouvetDevelopmentKit
InteractableButtonWithFocusEvents produces error on destroy
Open
bug
- Dominant language
- C#
- Stars
- 34
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
When you stop the program in the editor, _InteractableButtonWithFocusEvents_ will produce a `NullReferenceException` on line 103.
The line tries to access the `inputManager` instance and it seems this does not exist anymore.
Suggestion:
Add a null test for `inputManager` before trying to access it.
Contributor guide
Research direction
Search the project for InteractableButtonWithFocusEvents and inspect line 103, especially the destroy path and its access to inputManager. Reproduce the issue by stopping the program in the Unity editor, then verify that destruction no longer raises a NullReferenceException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100