You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2014/12/30 21:42:13 UTC
[jira] [Created] (HADOOP-11454) Potential null dereference in
Configuration#loadProperty()
Ted Yu created HADOOP-11454:
-------------------------------
Summary: 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
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)