Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12117

Potential NPE from Configuration#loadProperty with allowNullValueProperties set.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Potential NPE from Configuration#loadProperty with allowNullValueProperties set.
      The following code will cause NPE:

      } else if (!value.equals(properties.getProperty(attr))) {
      

      Because if allowNullValueProperties is true, value is null and finalParameters contains attr, NullPointerException will happen

        Attachments

        1. HADOOP-12117.000.patch
          3 kB
          zhihai xu
        2. HADOOP-12117.001.patch
          3 kB
          zhihai xu
        3. HADOOP-12117.002.patch
          3 kB
          zhihai xu

          Activity

            People

            • Assignee:
              zxu zhihai xu
              Reporter:
              zxu zhihai xu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: