Null reference Exception get_name()

Hi everyone, I don't know if it is a bug but I get a NullReferenceException in the UnityEngine.Object.get_name() method. This happens even if I test if the object is null. Something like :

foreach( Object obj in myReferencedObjects )
{
    if( obj != null )
    {
        Debug.Log( "Object : " + obj.name + "
" );
    }
}

What could cause a NullReferenceException in this case ?

Try doing if (obj) instead of if (obj != null)

Unity overloads != and ==, but it seems to go a little iffy from time to time

myReferencedObjects might be null?