hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-11454) Potential null dereference in Configuration#loadProperty()
Date Fri, 09 Jan 2015 04:57:35 GMT

     [ 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)

Mime
View raw message