Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.4
-
None
Description
Calling Grid.reset() from the parent component may result in NullPointerException:
Caused by: java.lang.NullPointerException
at org.apache.tapestry5.corelib.components.Grid.setCurrentPage(Grid.java:600)
at org.apache.tapestry5.corelib.components.Grid.reset(Grid.java:636)
at org.tynamo.examples.simple.pages.List.resetGrid(List.java:83)
at org.tynamo.examples.simple.pages.List.setupRender(List.java)
The issue is that setCurrentPage(1) on Grid.reset() is really unnecessary or at least should be after sortModel.clear(); (lines 636-637)
Attachments
Issue Links
- relates to
-
TAP5-2437 NullPointerException when trying to access (read or write) Grid's currentPage
- Closed