Skip to content

Commit

Permalink
fix texture binder crash
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Nov 9, 2024
1 parent a97bd4b commit a3caac9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ static <A, T> TextureBinder<A> of(Function<A, T> mapper, TextureBinder<T> binder
static <A, T> TextureBinder<A> of(Function<A, List<T>> mapper, TextureBinder<T> binder, Function<T, String> tooltipMapper) {
return o -> {
var list = mapper.apply(o);
if (list == null || list.isEmpty()) return Collections.emptyList();
binder.apply(list.get(0));
return list.stream().map(tooltipMapper).collect(Collectors.toList());
};
Expand Down

0 comments on commit a3caac9

Please sign in to comment.