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

Potential null dereference in Configuration#loadProperty()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • None

    Description

      Here is related code:

      2581             properties.setProperty(attr, value);
      2582             updatingResource.put(attr, source);
      2583           } else if (!value.equals(properties.getProperty(attr))) {
      

      The null check in the enclosing if statement is accompanied with allowNullValueProperties, thus dereferencing value above may result in NPE.

      Attachments

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: