Skip to content

Commit

Permalink
Merge pull request #221 from jfdenise/WFWIP-445
Browse files Browse the repository at this point in the history
Fix for WFWIP-445, NPE when using packaging-scipt with command in wil…
  • Loading branch information
jamezp authored Mar 7, 2022
2 parents aaf706c + a565ff8 commit 9957a41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/src/main/java/org/wildfly/plugin/cli/ScriptWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ static Path create(final BaseCommandConfiguration config) throws IOException {
boolean inTry = false;

for (String cmd : config.getCommands()) {
if (cmd == null || cmd.isEmpty()) {
continue;
}
if (config.isFailOnError()) {
writeCommand(writer, cmd);
} else {
Expand Down

0 comments on commit 9957a41

Please sign in to comment.