Serialize null reference error on game startup

Recently, every time I start the game, this error keeps showing up:

NullReferenceException: (null)
UnityEditor.SerializedObject…ctor (UnityEngine.Object[ ] objs) (at C:/BuildAgent/work/812c4f5049264fad/Editor/MonoGenerated/Editor/SerializedPropertyBindings.cs:39)
UnityEditor.AssetImporterInspector.GetSerializedObjectInternal () (at C:/BuildAgent/work/812c4f5049264fad/Editor/Mono/ImportSettings/AssetImporterInspector.cs:52)
UnityEditor.Editor.get_serializedObject () (at C:/BuildAgent/work/812c4f5049264fad/Editor/MonoGenerated/Editor/EditorBindings.cs:71)
UnityEditor.ModelImporterClipEditor.OnEnable () (at C:/BuildAgent/work/812c4f5049264fad/Editor/Mono/ImportSettings/ModelImporterClipEditor.cs:89)

Everything functions as normal but I cannot seem to pin-point it to anything.

Have you imported any packages recently? Something similar happened to me a few days ago, I exported everything I needed and created a new project and imported the stuff and that fixed it.

That’s a typical UnityEditor script behavior → running every time start the game.

Also, it won’t affect game behavior, since it runs only in the editor (most of them anyway).

Try looking at the scripts that have “using UnityEditor”. There shouldn’t be too many.