We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799018f commit 17971cfCopy full SHA for 17971cf
port-chooser/src/main/java/org/terracotta/utilities/test/net/NetStat.java
@@ -498,7 +498,10 @@ private static BusyPort parseWindowsCsv(String line) {
498
builder.localEndpoint(BusyPort.IPVersion.IPV4, fields.get(1), fields.get(2));
499
builder.remoteEndpoint(BusyPort.IPVersion.IPV4, fields.get(3), fields.get(4));
500
builder.state(BusyPort.TcpState.fromMicrosoftString(fields.get(5)));
501
- builder.shortCommand(fields.get(6));
+ // The short command may be missing
502
+ if (fields.size() >= 7) {
503
+ builder.shortCommand(fields.get(6));
504
+ }
505
// The full command line may be missing ...
506
if (fields.size() >= 8) {
507
builder.commandLine(fields.get(7));
0 commit comments