Weird NullReferenceException.

Hi all. Today i get null reference belong to … null script ? It is very weird. It don’t make any trouble but still it is a error and i want get rid of all errors(full error below).

NullReferenceException: (null)
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:193)
UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:185)
UnityEditor.MaterialEditor.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1773)

Can someone please tell me how to get rid of it.
ps. I already know it don’t belong to any script so it can’t be my mistake… but then whom mistake it is ?

I got the same issue here; using Unity 5.6.1f1 (win10,x64)
I keep getting it when using certain (UI) prefabs, but haven’t indentified if the problem is Unity’s, or one of the scripts on the prefab. I’ll let you know when/if I find something :wink:

Danny.