Uploaded image for project: 'Spring Batch'
  1. Spring Batch
  2. BATCH-2772

org.springframework.batch.core.JobParameter.toString may return null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.7
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

        public String toString() { public String toString() { return parameter == null ? null : (parameterType == ParameterType.DATE ? "" + ((Date) parameter).getTime() : parameter.toString()); }

      This behavior causes NPE in the JopParameters.toProperties method

      java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:459) at org.springframework.batch.core.JobParameters.toProperties(JobParameters.java:219) 

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dmitrysm2000 Dmitry Smeliansky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: