hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jianfei Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-13261) Incorrect null value check
Date Mon, 12 Mar 2018 14:38:00 GMT
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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message