Opened 13 years ago

Closed 13 years ago

#719 closed (fixed)

Project table scroller on Home page results in NullPointerException

Reported by: olle Owned by: olle
Milestone: Proteios SE 2.14.0 Keywords:
Cc:

Description

If a user has more projects than can be fitted in the projects table on the Proteios SE home page, the table footer reports the number of projects shown and the total number of projects, together with the normal links to numbered table pages, the first, previous, next, and last page. However, clicking on any of the active table links results in a null-pointer exception, as no action is related to the scroll links.

Change History (10)

comment:1 Changed 13 years ago by olle

Status: newassigned

Ticket accepted.

comment:2 Changed 13 years ago by olle

Design background:

  • The home page project table is managed by class ViewHome, that calls methods in class TableFactory to create the table.

comment:3 Changed 13 years ago by olle

(In [3964]) Refs #719. Class/file action/read/ViewHome.java in client/servleT/ updated to set the project table scroller configuration action to class ViewHome itself:

  1. Public method void runMe() updated to set project table

scroller action id to the id of ViewHome.class.

comment:4 Changed 13 years ago by olle

Test of fix:

  • The home page project table scroller was tested with a user account having 23 projects, where the table max size was set to 20 items. It was now possible to toggle between a table showing the first 20 and the last 3 projects, using different scroller links in the table footer. The test was therefore passed with successful result.

comment:5 Changed 13 years ago by olle

Test of fix - 2:

  • The home page project table scroller was tested with a user account having no projects. This resulted in a NullPointerException directly after logging in, as no scroller had been created for the table, when projectsTable.getScroller().setTableConfActionId(...) was called. The test therefore FAILED!

comment:6 Changed 13 years ago by olle

(In [3966]) Refs #719. Class/file action/read/ViewHome.java in client/servleT/ updated with critical fix to ensure that a project table scroller exists, before calling methods to set its configuration action id:

  1. Public method void runMe() updated to ensure that a project

table scroller exists, before calling methods to set its configuration action id.

comment:7 Changed 13 years ago by olle

Test of fix 2 - 1:

  • The home page project table scroller was tested with a user account having 23 projects, where the table max size was set to 20 items. It was now possible to toggle between a table showing the first 20 and the last 3 projects, using different scroller links in the table footer. The test was therefore passed with successful result.

comment:8 Changed 13 years ago by olle

Test of fix 2 - 2:

  • The home page project table scroller was tested with a user account having no projects. The home page now showed an empty project table. The test was therefore passed with successful result.

comment:9 Changed 13 years ago by olle

The ticket is closed, as the described problem has been fixed. Should problems with the current solution appear, this ticket may be reopened, or a new ticket created.

comment:10 Changed 13 years ago by olle

Resolution: fixed
Status: assignedclosed

The ticket is closed, as the desired functionality has been added. Should problems with the current solution appear, this ticket may be reopened, or a new ticket created.

Note: See TracTickets for help on using tickets.