Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit ea1f397

Browse files
authored
Merge pull request #34 from hotn/master
Return empty list from RunProcessReturnOutputSplit if RunProcessRetur…
2 parents 171d81f + 8014367 commit ea1f397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VueCliMiddleware/Util/KillPort.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static int GetPortPid(ushort port)
8080
private static List<string[]> RunProcessReturnOutputSplit(string fileName, string arguments)
8181
{
8282
string result = RunProcessReturnOutput(fileName, arguments);
83-
if (result == null) return null;
83+
if (result == null) return new List<string[]>();
8484

8585
string[] lines = result.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
8686
var lineWords = new List<string[]>();

0 commit comments

Comments
 (0)