Strange error showing up

I am geting the following error in the console for some reason:

NullReferenceException: (null)
UnityEditor.SerializedObject…ctor (UnityEngine.Object objs) (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/SerializedPropertyBindings.cs:66)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/EditorBindings.cs:114)
UnityEditor.Editor.get_serializedObject () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/MonoGenerated/Editor/EditorBindings.cs:107)
UnityEditor.TransformInspector.OnEnable () (at C:/BuildAgent/work/7535de4ca26c26ac/Editor/Mono/Inspector/TransformInspector.cs:19)

Any Ideas?

Seems like you’re trying to reference Unity asset or game object that has already been removed.

For me, this occurred when I removed an asset from my Unity project using file manager instead of removing it through Unity. Saving and re-opening the project worked for me. If that doesn’t work, you could try exporting all your Unity assets, creating a new project and importing your assets for the new project.