Closed yqxu closed 3 years ago
org.fxmisc.flowless.CellListManager#getCellIfPresent
changes the implementation as blow is better.
public Optional<C> getCellIfPresent(int itemIndex) { if (itemIndex>=cells.size()||itemIndex<0){ return Optional.empty(); } return cells.getIfMemoized(itemIndex); // getIfMemoized() may throw }
Thanks @yqxu, see PR #90
org.fxmisc.flowless.CellListManager#getCellIfPresent
changes the implementation as blow is better.