[mono/monodevelop] f8341eda: [NUnit] Fix NRE when using a monomac-based custom runner

"Lluis Sanchez ([email protected])" <[email protected]> Thu, 14 Nov 2013 14:58:56 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000142571f447b-4126851a-f144-40fc-a64a-37a3b451a1ad-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/compare/1911436e9c2a...f8341eda2a02

   Commit: f8341eda2a0213de19b7cd7eb9b9144af9f6dca8
   Author: Lluis Sanchez <[email protected]> (slluis)
     Date: 2013-11-14 14:57:44 GMT
      URL: https://github.com/mono/monodevelop/commit/f8341eda2a0213de19b7cd7eb9b9144af9f6dca8

[NUnit] Fix NRE when using a monomac-based custom runner

Changed paths:
  M main/src/addins/NUnit/Services/NUnitAssemblyTestSuite.cs

Modified: main/src/addins/NUnit/Services/NUnitAssemblyTestSuite.cs
===================================================================
@@ -472,7 +472,7 @@ UnitTestResult RunWithConsoleRunner (ProcessExecutionCommand cmd, UnitTest test,
 					cmd.Arguments += " ";
 				cmd.Arguments += "\"-xml=" + outFile + "\" " + AssemblyPath;
 
-				bool automaticUpdates = cmd.Command.Contains ("GuiUnit") || (cmd.Command.Contains ("mdtool.exe") && cmd.Arguments.Contains ("run-md-tests"));
+				bool automaticUpdates = cmd.Command != null && (cmd.Command.Contains ("GuiUnit") || (cmd.Command.Contains ("mdtool.exe") && cmd.Arguments.Contains ("run-md-tests")));
 				if (!string.IsNullOrEmpty(pathName))
 					cmd.Arguments += " -run=" + test.TestId;
 				if (automaticUpdates) {


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches