Reproduction steps:
- Open the user attached project
- Open the “SampleScene” scene
- Enter the Play mode
- Select the error in the Console window
Expected result: NullReferenceException is not thrown in the Console
Actual result: NullReferenceException is thrown in the Console
Reproducible with: 2022.1.0b1, 2022.1.20f1, 2022.2.0b11, 2023.1.0a14
Not reproducible with: 2020.3.40f1, 2021.3.12f1, 2022.1.0a16
Reproduced on: Windows 10
Note: in 2022.2 and 2023.1 sometimes, the Console window will bug out and won’t show anything unless opened again, behavior is intermittent, no clear workaround for this
First few lines of error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.ProjectBrowser.FrameObject (System.Int32 instanceID, System.Boolean ping) (at <bea9da6418424583b59c6d5cd71cb31c>:0)
UnityEditor.EditorGUIUtility.PingObject (System.Int32 targetInstanceID) (at <bea9da6418424583b59c6d5cd71cb31c>:0)
UnityEditor.ConsoleWindow.SetActiveEntry (UnityEditor.LogEntry entry) (at <bea9da6418424583b59c6d5cd71cb31c>:0)
UnityEditor.ConsoleWindow.OnGUI () (at <bea9da6418424583b59c6d5cd71cb31c>:0)