NullReferenceException: Object reference not set to an instance of an object HELP!!!!

Hey Guys,
I have just started using unity on my laptop but keep getting the error shown below. I don’t know what it means let alone how to fix it. :frowning: any help would be greatly appreciated.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUIUtility.GetControlID (Int32 hint, FocusType focus, Rect position) (at C:/BuildAgent/work/b0bcff80449a48aa/Runtime/ExportGenerated/Editor/GUIUtility.cs:257)
UnityEditor.EditorGUI.GetControlID (Int32 hash, FocusType fType, Rect position) (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/MonoGenerated/Editor/EditorGUI.cs:279)
UnityEditor.PreviewResizer.get_id () (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/GUI/PreviewResizer.cs:29)
UnityEditor.PreviewResizer.GetPreviewSize () (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/GUI/PreviewResizer.cs:126)
UnityEditor.ObjectSelector.OnEnable () (at C:/BuildAgent/work/b0bcff80449a48aa/Editor/Mono/ObjectSelector.cs:100)
UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String)
UnityEditor.WindowLayout:LoadWindowLayout(String)

I usually get this when call a Transform var, but I have not set the var to an object.

I really dont know what it is. It is there from when i downloaded unity before I even create a project :confused:

In such cases, you have to post your code. Its only then that people can take a look and figure out whats wrong.

Post your code inside the code tags for better readability

If you start an empty unity project, and this issue is still there you should submit a bug report!

This can be done in the top menu (Help->Report a Bug).