You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Jianfei Jiang (JIRA)" <ji...@apache.org> on 2018/03/12 14:38:00 UTC
[jira] [Created] (HDFS-13261) Incorrect null value check
Jianfei Jiang created HDFS-13261:
------------------------------------
Summary: Incorrect null value check
Key: HDFS-13261
URL: https://issues.apache.org/jira/browse/HDFS-13261
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs
Affects Versions: 3.0.0, 2.8.3
Reporter: Jianfei Jiang
Assignee: Jianfei Jiang
{code:java}
public void setZoneName(final String name) {
Preconditions.checkNotNull(name == null)-------error parameter for checkNotNull
zoneName = name;
}
{code}
Like above, in 3.x, the checkNotNull function gets wrong parameter in two cases: \{{ZoneReencryptionStatus#setZoneName}} and \{{AdminHelper#HelpCommand#HelpCommand}}
In 2.x, the error occurs once in \{{AdminHelper#HelpCommand#HelpCommand}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org