Skip to content

Commit

Permalink
Remove empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Aug 15, 2024
1 parent fcb8c6d commit b5913a5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.*;
import net.miginfocom.swing.MigLayout;
Expand Down Expand Up @@ -150,7 +150,10 @@ private ApplicationConfiguration setApplicationConfiguration(Configuration confi
appConfig.setBinaryPath(binaryPathField.getText());
appConfig.setWorkingDirectory(workingDirectoryField.getText());
appConfig.setParameters(
new ArrayList<>(List.of(parametersArea.getText().split("\\n")))); // NON-NLS
new ArrayList<>(
Arrays.stream(parametersArea.getText().split("\\n"))
.filter(StringUtil::hasText)
.toList()));
appConfig.setEnvironmentVariables(
parseEnvironmentVariables(environmentVariablesArea.getText()));
appConfig.setCompatibility((Compatibility) compatibilityField.getSelectedItem());
Expand Down

0 comments on commit b5913a5

Please sign in to comment.