In System.Diagnostics:
[mono.git] / mcs / class / System / System.Diagnostics / Process.cs
index fa28855f54287309b02961670c6830946d8542d9..01bf816904861d2e41a47b56d8637385d1a6d5da 100644 (file)
@@ -1132,7 +1132,7 @@ namespace System.Diagnostics {
                        
                        if (startInfo.UseShellExecute) {
 #if NET_2_0
-                               if (startInfo.UserName != null)
+                               if (!String.IsNullOrEmpty (startInfo.UserName))
                                        throw new InvalidOperationException ("UserShellExecute must be false if an explicit UserName is specified when starting a process");
 #endif
                                return (Start_shell (startInfo, process));