Search Issue Tracker
Duplicate
Votes
0
Found in
2018.2.0f2
Issue ID
1087422
Regression
No
Functions inside destroyed components can get called
How to reproduce:
1. Open the "Destroyed_call_repro.zip"
2. Open the "SampleScene.Unity" scene
3. Enter Play mode
4. Press A (Debug log called from Test.DoWork())
5. Press B (the Test game object is Destroyed)
6. Press A (Debug log is still called from Test.DoWork())
Actual result: Function attached to null GameObject gets executed.
Expected result: Function shouldn't get executed when the script is null.
Reproducible with: 2019.1.0a7, 2018.3.0b8, 2018.2.14f1, 2018.1.9f2, 2017.4.13f1.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
This is a duplicate of issue #941880