diff options
author | David Karlaš <david.karlas@xamarin.com> | 2014-06-05 13:25:33 +0400 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2014-06-05 13:26:33 +0400 |
commit | 4213e27507ad8b04ad98a078703669f9dadf3594 (patch) | |
tree | bc12699621075851a1b9f417a2a884bf3a2b2ce0 /main/src/addins/MonoDevelop.Debugger.Win32 | |
parent | 5e025a375ffb7eb48fb5dbe53e4e4db977a6e662 (diff) |
[CorDebugger] Bug 20264 ObjectValue.IsNull was not set as it should be
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger.Win32')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs b/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs index 57a37558ea..3a8dcb3623 100644 --- a/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs +++ b/main/src/addins/MonoDevelop.Debugger.Win32/MonoDevelop.Debugger.Win32/CorObjectAdaptor.cs @@ -80,8 +80,12 @@ namespace MonoDevelop.Debugger.Win32 public override bool IsNull (EvaluationContext ctx, object gval)
{
- CorValRef val = (CorValRef) gval;
- return val == null || ((val.Val is CorReferenceValue) && ((CorReferenceValue) val.Val).IsNull);
+ var val = (CorValRef)gval;
+ if (val == null || ((val.Val is CorReferenceValue) && ((CorReferenceValue)val.Val).IsNull))
+ return true;
+
+ var obj = GetRealObject (ctx, val);
+ return (obj is CorReferenceValue) && ((CorReferenceValue)obj).IsNull;
}
public override bool IsValueType (object type)
|