Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-11411

Null Pointer Exception when exporting lookup with no form data

    Details

    • Type: Bug Fix
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3, 2.4
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Lookup
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required

      Description

      User testing 2.3.1 export on lookup received the exception:

      java.lang.NullPointerException
      at org.kuali.rice.krad.web.controller.UifControllerBase.retrieveTableData(UifControllerBase.java:1066)
      at org.kuali.rice.krad.web.controller.UifControllerBase.tableCsvRetrieval(UifControllerBase.java:1009)
      at org.kuali.rice.krad.web.controller.UifControllerBase$$FastClassByCGLIB$$7929303a.invoke(<generated>)
      

      Issue was caused a current form retrieving null which can occur due to expired form data:

      UifFormBase currentForm = uifFormManager.getSessionForm(formKey);
      View view;
      if (currentForm.getPostedView() != null) {
          view = currentForm.getPostedView();
      } else {
          view = currentForm.getView();
      }
      

      Needs a check to the current form that is null it will indicate expired results data.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              mztaylor Martin Taylor (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: