What might have triggered this?
I removed a third party older package that was causing errors,
now I get this. I closed and restarted Unity after removing the package and it did a recompile.
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.InspectorWindow.FlushOptimizedGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1413)