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

Potential NPE from Configuration#loadProperty with allowNullValueProperties set.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • conf
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zxu Zhihai Xu
            zxu Zhihai Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment