Getting error only when inspector is looking at array

I have a chain of inherited classes, and I have an array of baseClass

they are all [Serializable]

whenever I do baseClass[×] = inheritedClass, everything works fine

however, if I touch the object in the hierarchy that has a reference to baseClass[ ], during playmode,

Im getting the following error:

ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.
(wrapper stelemref) System.Object.virt_stelemref_class_small_idepth(intptr,object)

if I dont open the inspector everything works correctly

This doesnt really bother me because the code is working correctly, its just extremely annoying that I have to be careful about what object I have selected in the inspector

Is the base class array marked with [SerializeReference]?

Other than that, without seeing the code (the entire chain) we can’t tell if there’s anything wrong with it.

the issue was that the fields can never be set to null, instead always a vanilla class