Reproduction steps:
- Open the attached project “UndoCreateBug”
- Select Scene “Assets/Scenes/SampleScene“
- Enter the Play Mode
- In the Hierarchy window Select the GameObject “Cube”
- In the Inspector window select the “Undo Create Bug Example” component
- Press the button “Create ScriptableObject”
- Press CTRL + Z
- Press CTRL + Y
Expected result: Redo command does not cause warnings
Actual result: Warning message appears “The referenced script on this Behaviour (Game Object '<null>') is missing!
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()“
Reproducible with: 2021.2.0a9, 2021.2.19f1, 2021.3.14f1, 2022.1.0a12
Not reproducible with: 2020.3.42f1, 2021.2.0a8, 2022.1.0a13, 2022.1.23f1, 2022.2.0f1, 2023.1.0a20
Reproducible on: Windows 11