!o UnityEditor.DockArea:OnGUI() error

I have a basic script that set parameters of animator controller. But I am getting this error:

!o 
UnityEditor.DockArea:OnGUI()

Use EditorGUIUtility.ExitGUI(); at the end if that not works we need more info