Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-4173

SectionBridge not checking for empty collections in old maintainables

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1.1, 1.0.2
    • Fix Version/s: 1.0.3
    • Component/s: User Interface
    • Labels:
      None
    • Similar issues:
      KULRICE-4263SectionBridge throws exception when new collection lines are added and old do not exist
      KULRICE-4776FieldUtils throws exception when old collection lines do not exist
      KULRICE-503put a handleRouteStatusChange change methods on Maintainable with empty implementations on KualiMaintainableImpl
      KULRICE-6333Adding to a sub-collection results in a new empty line on the last sub-collection off the primary collection
      KULRICE-13104Empty check in ValidationUtils via ExistenceConstraintProcessor ...
      KULRICE-5346Delete collection line on editing maintenance doc - not deleting old collection line
      KULRICE-4158default existence checks do not work for collections
      KULRICE-13214Create AFT for Duplicate Collection Item Check
      KULRICE-8865CollectionsFormatter - want to specify a custom message if the collection is empty
      KULRICE-5299Add line on collections not checking required fields and not refreshing just the collection group

      Description

      When creating a new object in a maintenance doc the SectionBridge only checks if related collections are null, this is causing IndexOutOfBounds exceptions when the collection is empty.
      Changing line 365 to the following seems to fix the problem

      if (oldObj != null && ((List) oldObj).size() > i) {

        Activity

        Hide
        Garey Taylor added a comment -

        Code Changed. Thanks!

        Show
        Garey Taylor added a comment - Code Changed. Thanks!

          People

          • Assignee:
            Garey Taylor
            Reporter:
            Scott Gibson (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Structure Helper Panel