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
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
Add comment