Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
2.0.0, 2.0.2
Issue ID
1178254
Regression
No
NullReferenceException is thrown when exiting Play mode and Recorder List Asset is selected in Project window
How to reproduce:
1. Open the attached 'project-1178254.zip' project using the EnvIronman VM (optional) (more information in Edit)
2. Select 'BugRecorderList' in the Project window
3. Enter and exit Play mode
4. Observe the Console window
Expected result: no exceptions are thrown
Actual result: NullReferenceException is thrown
Reproducible with: 2018.4.7f1, 2019.2.3f1, 2019.3.0b1, 2020.1.0a1 (2.0.0, 2.0.2)
Notes:
1) Selecting the Recorder List Asset after entering (and exiting) Play mode for the first time throws the exception without needing to enter Play mode
2) Deleting the Recorder List Asset and entering Play mode throws InvalidCastException
3) De-selecting the Recorder List Asset and entering Play mode for the second time throws KeyNotFoundException (reproducible with 2019.2.3f1)
4) Entering Play mode for the second time after deleting the Recorder List Asset starts throwing KeyNotFoundException (reproducible with 2019.3.0b1, 2020.1.0a1)
5) Re-opening the project fixes this behavior until a Recorder List Asset is selected and Play mode is entered
'NullReferenceException' exception:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Presets.PresetEditor.GenerateInternalEditor () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetEditor.cs:165)
UnityEditor.Presets.PresetEditor.OnEnable () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetEditor.cs:58)
UnityEditor.Recorder.RecorderControllerSettingsPresetEditor:OnEnable()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture is stored upside down when using Blit
- [VFX] Missing Expand Toggle with Output Slot
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
Add comment