Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-12859

Exception when creating a new site for term with no start date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.4.1
    • Fix Version/s: 2.4.x, 2.5.0, 2.6.0
    • Component/s: Sites (Admin) Tool
    • Labels:
      None
    • Environment:
      Ubuntu 7.1, Java 1.5.0_13, Tomcat 5.5.23, MySQL 5.0.27

      Description

      When creating a new site in the Admin tool, a term is selected that has no start date. After clicking next, a Null Pointer Exception is thrown that kicks the user back to the term selection screen.

      In the current database schema, the CM_ACADEMIC_SESSION_T table permits null values for START_DATE and END_DATE.

      In SiteAction.java, isFutureTermSelected() checks the term start date against the current date. However, if the start date is not defined, it throws an uncaught NPE. The attached patch just checks that start date is defined, and treats the term as a current term if it is not.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                bsawert Brian Sawert (Inactive)
                Reporter:
                bsawert Brian Sawert (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration