You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/01/09 05:57:35 UTC

[jira] [Updated] (HADOOP-11454) Potential null dereference in Configuration#loadProperty()

     [ https://issues.apache.org/jira/browse/HADOOP-11454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu updated HADOOP-11454:
----------------------------
    Labels: config  (was: )

> Potential null dereference in Configuration#loadProperty()
> ----------------------------------------------------------
>
>                 Key: HADOOP-11454
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11454
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>              Labels: config
>         Attachments: hadoop-11454-001.patch
>
>
> Here is related code:
> {code}
> 2581             properties.setProperty(attr, value);
> 2582             updatingResource.put(attr, source);
> 2583           } else if (!value.equals(properties.getProperty(attr))) {
> {code}
> The null check in the enclosing if statement is accompanied with allowNullValueProperties, thus dereferencing value above may result in NPE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)