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 "zhihai xu (JIRA)" <ji...@apache.org> on 2015/07/06 20:04:04 UTC
[jira] [Updated] (HADOOP-12117) Potential NPE from
Configuration#loadProperty with allowNullValueProperties set.
[ https://issues.apache.org/jira/browse/HADOOP-12117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhihai xu updated HADOOP-12117:
-------------------------------
Attachment: HADOOP-12117.002.patch
> Potential NPE from Configuration#loadProperty with allowNullValueProperties set.
> --------------------------------------------------------------------------------
>
> Key: HADOOP-12117
> URL: https://issues.apache.org/jira/browse/HADOOP-12117
> Project: Hadoop Common
> Issue Type: Bug
> Components: conf
> Affects Versions: 2.7.1
> Reporter: zhihai xu
> Assignee: zhihai xu
> Priority: Minor
> Attachments: HADOOP-12117.000.patch, HADOOP-12117.001.patch, HADOOP-12117.002.patch
>
>
> Potential NPE from Configuration#loadProperty with allowNullValueProperties set.
> The following code will cause NPE:
> {code}
> } else if (!value.equals(properties.getProperty(attr))) {
> {code}
> Because if {{allowNullValueProperties}} is true, {{value}} is null and {{finalParameters}} contains {{attr}}, NullPointerException will happen
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)