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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
Add comment