How to reproduce:
1. Open a new Unity project
2. Create and select two Particle System GameObjects in the Hierarchy
3. Right-click on the Multiple Particle Systems header in the Inspector
4. Select the “Reset” button
5. Undo by clicking Ctrl + Z (⌘ + Z on macOS) keyboard key combination
Expected result: Previous action is successfully undone
Actual result: All undoes will result with NullReferenceException error thrown in the Console log
Reproducible with: 2023.1.0a18, 2023.1.0b2
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.5f1, 2023.1.0a17
Reproduced on: macOS 13.0 (Intel), Windows 10
Thrown error:
NullReferenceException: SerializedObject of SerializedProperty has been Disposed.