vaadin / vaadin/spreadsheet

Exception when using table filter

Open
#635 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
50
Forks
53
Avg merge
1d 21h
Merged PRs (30d)
1

Description

I get an exception trying to use a table filter in the attached "Parameter_File2_s1" workbook:

  • select the "entity" tab
  • in column A, click on the "Parameter" drop-down to trigger this error
    java.lang.IllegalArgumentException: lastRow < firstRow || lastCol < firstCol at org.apache.poi.ss.util.CellRangeAddress.&lt;init&gt;(CellRangeAddress.java:52) at com.vaadin.addon.spreadsheet.SpreadsheetFilterTable.&lt;init&gt;(SpreadsheetFilterTable.java:94) at com.vaadin.addon.spreadsheet.SpreadsheetFilterTable.&lt;init&gt;(SpreadsheetFilterTable.java:70) at com.vaadin.addon.spreadsheet.SpreadsheetFactory.loadSheetTables(SpreadsheetFactory.java:455) at com.vaadin.addon.spreadsheet.SpreadsheetFactory.reloadSpreadsheetData(SpreadsheetFactory.java:410) at com.vaadin.addon.spreadsheet.Spreadsheet.setActiveSheetWithPOIIndex(Spreadsheet.java:1301) at com.vaadin.addon.spreadsheet.Spreadsheet.setActiveSheetIndex(Spreadsheet.java:1275) at com.vaadin.addon.spreadsheet.Spreadsheet.onSheetSelected(Spreadsheet.java:1323)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the attached Parameter_File2_s1 workbook by selecting the entity sheet and opening the Parameter dropdown in column A. Start with SpreadsheetFilterTable.java and the loadSheetTables path in SpreadsheetFactory.java, then inspect the CellRangeAddress arguments shown in the stack trace. Done means the dropdown no longer throws an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.