Skip to content

ArgumentNullException on first Play #235

Open
@CDTR-MattConroy

Description

@CDTR-MattConroy

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:

  1. Close Unity
  2. Open Unity
  3. Enter Play mode
  4. 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&)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneed more infoNeed more information to help

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions