[mono/monodevelop] 0aba0379: [Debugger] Fix NRE in Debugger tests.

"Therzok ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141f003e526-d3212578-89f1-4be7-9464-3634b4f3f9e5-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/fe0d6f373afb...0aba03794f85

   Commit: 0aba03794f85fe7890c9603543cb40573b2c3caa
   Author: Therzok <[email protected]> (Therzok)
     Date: 2013-10-25 14:26:03 GMT
      URL: https://github.com/mono/monodevelop/commit/0aba03794f85fe7890c9603543cb40573b2c3caa

[Debugger] Fix NRE in Debugger tests.

Changed paths:
  M main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.Tests/EvaluationTests.cs
  M main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.Tests/StackFrameTests.cs

Modified: main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.Tests/EvaluationTests.cs
===================================================================
@@ -51,8 +51,10 @@ public override void Setup ()
 		public override void TearDown ()
 		{
 			base.TearDown ();
-			ds.Exit ();
-			ds.Dispose ();
+			if (ds != null) {
+				ds.Exit ();
+				ds.Dispose ();
+			}
 		}
 
 

Modified: main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.Tests/StackFrameTests.cs
===================================================================
@@ -51,8 +51,10 @@ public override void Setup ()
 		public override void TearDown ()
 		{
 			base.TearDown ();
-			ds.Exit ();
-			ds.Dispose ();
+			if (ds != null) {
+				ds.Exit ();
+				ds.Dispose ();
+			}
 		}
 		
 		public StackFrame Frame {


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.