Skip to content

Commit 6f6e42c

Browse files
committed
Adjust tests
1 parent 658c213 commit 6f6e42c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/simplelocalize/cli/command/DownloadCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.io.IOException;
1414
import java.util.ArrayList;
1515
import java.util.List;
16+
import java.util.Objects;
1617

1718
public class DownloadCommand implements CliCommand
1819
{
@@ -44,7 +45,7 @@ public void invoke() throws IOException, InterruptedException
4445
log.info("Languages: {}", languageKeys);
4546
}
4647

47-
final List<String> tags = configuration.getDownloadTags();
48+
final List<String> tags = Objects.requireNonNullElse(configuration.getDownloadTags(), List.of());
4849
if (!tags.isEmpty())
4950
{
5051
log.info("Tags: {}", tags);

0 commit comments

Comments
 (0)