Open
Description
NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.
Describe the bug
ArgumentNullException is intermittently thrown whene existing Play mode the first time after re-opening the Editor.
To Reproduce
Steps to reproduce the behavior:
- Close Unity
- Open Unity
- Enter Play mode
- See error
Expected behavior
No exception is thrown
Environment (please complete the following information):
- Version [3.2.4]
- Platform: [Editor(Windows)]
- Unity version: [2023.2.20f1]
Additional context
ArgumentNullException: Value cannot be null.
Parameter name: objectToOverwrite
UnityEditor.EditorJsonUtility.FromJsonOverwrite (System.String json, System.Object objectToOverwrite) (at <8f5ff83e453e49179847370b820a0398>:0)
Coffee.UISoftMaskInternal.PreloadedProjectSettings`1[T].OnPlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at ./Library/PackageCache/[email protected]/Runtime/Internal/ProjectSettings/PreloadedProjectSettings.cs:169)
UnityEditor.EditorApplication.Internal_PlayModeStateChanged (UnityEditor.PlayModeStateChange state) (at <8f5ff83e453e49179847370b820a0398>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)