X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Runtime.Remoting%2FTypeInfo.cs;h=06f54b12cebc44afca5334119e9e1837c7f64297;hb=9afab4092501a7e7e240a2dd9ed0892d1e0821de;hp=59f2c8bbd8ee64a53fe29e349622ea8034a6da92;hpb=f1f8b8a867c800b21b6a03767252403c2f72cae2;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++;