X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.Remoting%2FTypeInfo.cs;h=06f54b12cebc44afca5334119e9e1837c7f64297;hb=d326ae2998c679e1e78897cfcb2d5fd4fbcf2c8d;hp=59f2c8bbd8ee64a53fe29e349622ea8034a6da92;hpb=7ff8f29ff29fa3f08ef305ac43ef079097323286;p=mono.git diff --git a/mcs/class/corlib/System.Runtime.Remoting/TypeInfo.cs b/mcs/class/corlib/System.Runtime.Remoting/TypeInfo.cs index 59f2c8bbd8e..06f54b12ceb 100644 --- a/mcs/class/corlib/System.Runtime.Remoting/TypeInfo.cs +++ b/mcs/class/corlib/System.Runtime.Remoting/TypeInfo.cs @@ -56,7 +56,7 @@ namespace System.Runtime.Remoting int baseCount = 0; Type baseType = type.BaseType; - while (baseType != typeof (MarshalByRefObject) && baseType != typeof(object)) + while (baseType != typeof (MarshalByRefObject) && baseType != null) { baseType = baseType.BaseType; baseCount++;