NPE while applying more than one root recipes selected in eclipse

This commit is contained in:
aboyko
2022-12-07 10:37:35 -05:00
parent ae43ae98d0
commit da8ea1d33a
2 changed files with 10 additions and 2 deletions

View File

@@ -124,6 +124,7 @@ public class RecipeTreeModel {
return recipes[0];
} else {
RecipeDescriptor aggregate = new RecipeDescriptor();
aggregate.name = recipes.length + " recipes";
aggregate.displayName = recipes.length + " recipes";
aggregate.description = "Multiple recipes to be applied. Number of recipes " + recipes.length;
aggregate.tags = Arrays.stream(recipes).flatMap(r -> r.tags.stream()).collect(Collectors.toSet());