Skip to content

Commit

Permalink
null rows
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Jan 13, 2025
1 parent c0592f6 commit 6ac9d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meja-fx/src/main/java/com/dua3/meja/ui/fx/FxSegmentView.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ public FxSegmentView(FxSheetViewDelegate svDelegate, SheetView.Quadrant quadrant
* @param splitRow the split row, i.e., rows above this row belong to the upper half
* @return the filtered {@link ObservableList} of rows
*/
private static ObservableList<Row> filterRows(ObservableList<Row> rows, SheetView.Quadrant quadrant, int splitRow) {
return new FilteredList<>(rows, row -> quadrant.isTop() == (row.getRowNumber() < splitRow));
private static ObservableList<@Nullable Row> filterRows(ObservableList<@Nullable Row> rows, SheetView.Quadrant quadrant, int splitRow) {
return new FilteredList<>(rows, row -> row != null && quadrant.isTop() == (row.getRowNumber() < splitRow));
}

/**
Expand Down

0 comments on commit 6ac9d9e

Please sign in to comment.