Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4.0f1
2020.2
Issue ID
1254425
Regression
No
"ReferenceException" Errors are thrown when interacting with custom UI element after scene change
How to reproduce:
1. Open attached project "case1254425.zip" and scene "SampleScene"
2. Open scene "Test1"
3. Click on the Button in the Scene view
4. Observe the Console
Expected result: No errors in the Console
Actual result: One of two errors are thrown/spammed in the Console
Reproducible with: 2018.4.25f1, 2019.4.4f1, 2020.1.0b16, 2020.2.0a18
Notes:
-From version 2018.4.25f1 to 2019.3.0b9 and from 2020.1.0a15 to 2020.2.0a18 error "NullReferenceException: Object reference not set to an instance of an object HorizontalDropdown.OnDestroy ()" is thrown
-From version 2019.3.0b10 to 2020.1.0a14 error "MissingReferenceException: The object of type 'HorizontalDropdown' has been destroyed but you are still trying to access it." is being spammed
-This issue also reproduces on macOS
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
- [Web] VideoPlayer.frameReady event fires only once in a video when the Player Graphics API is set to WebGPU
- Hierarchy V2 Reset Columns leaves empty space and does not resize to fit when removing the columns
- Unexpected changes are made to the main asset when cloning and adding root objects with AddObjectToAsset in AssetPostprocessor
- [RenderGraph] Outputs from camera stack override each other when using OpenGLES3 with a custom renderer feature
- An "RefreshInternalV2 is called before InitialRefresh" error is thrown when opening a project where a build profile with Player settings added is selected
Resolution Note (2020.2.X):
The issue is the user is accessing a null object which then prevents some things from deregistering as the null stops execution. Their OnDestroy call doesn't ensure that either button is still present. Resolving that null reference exception i dont see a further issue...