Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-15378

Querying instances of certain workflow jobs results in NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Module - Workflow
    • Labels:
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      2020.12 - IDM

      Description

      Querying for workflow jobs can create 500 errors (NPEs) if the createDate or dueDate is null.

      JobResource.java
      
        static JsonValue toJsonValue(Job job) {
      ...
                      field("createTime", dateUtil.formatDateTimeUTC(job.getCreateTime())),
                      field("dueDate", dateUtil.formatDateTimeUTC(job.getDuedate()))
              ));
          }
      
      Caused by: java.lang.NullPointerException
      	at org.forgerock.openidm.util.DateUtil.formatDateTimeUTC(DateUtil.java:220)
      	at org.forgerock.openidm.workflow.activiti.impl.JobResource.toJsonValue(JobResource.java:326)
      	at org.forgerock.openidm.workflow.activiti.impl.JobResource.queryCollection(JobResource.java:230)
      	... 142 more
      

        Attachments

          Activity

            People

            • Assignee:
              jason.vincent jason vincent
              Reporter:
              jason.vincent jason vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: