Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2019.3.0a6
Issue ID
1162563
Regression
Yes
[Presets] ArgumentNullException error is thrown on creating preset of the existing preset asset
Undo objects may not be null and ArgumentNullException errors are thrown on overriding preset with the existing preset asset.
Steps to repro:
1. Open the attached project.
2. Select the BoxCollider preset asset.
3. Click on the preset icon in the inspector.
4. Replace & Save the preset.
Actual Result:
Exceptions are thrown in the console.
Expected Result:
The Exceptions should not occur in the console.
Reproducible in:
2019.3.0a6.
Working Fine in:
2019.3.0a5, 2019.2.0b6.
Environment:
Windows & Mac.
Stack trace:
Undo objects may not be null.
UnityEditor.ContainerWindow:InternalCloseWindow()
ArgumentNullException: Value cannot be null.
Parameter name: target
UnityEditor.Presets.Preset.ApplyTo (UnityEngine.Object target) (at C:/buildslave/unity/build/Modules/PresetsEditor/Public/Preset.bindings.cs:26)
UnityEditor.Presets.PresetContextMenu.RevertValues () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetContextMenu.cs:24)
UnityEditor.Presets.PresetContextMenu.OnSelectionChanged (UnityEditor.Presets.Preset selection) (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetContextMenu.cs:32)
UnityEditor.Presets.PresetContextMenu.OnSelectionClosed (UnityEditor.Presets.Preset selection) (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetContextMenu.cs:47)
UnityEditor.Presets.PresetSelector.OnDisable () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetSelector.cs:298)
UnityEditor.ContainerWindow:InternalCloseWindow()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
Add comment