hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bd2019us (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-9479) Change String.equals to Objects.equals(String,String) to avoid possible NullPointerException
Date Sun, 14 Apr 2019 03:13:00 GMT

     [ https://issues.apache.org/jira/browse/YARN-9479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

bd2019us updated YARN-9479:
---------------------------
    Description: 
Hello,
I found that the String "queueName"  may cause potential risk of 
NullPointerException since it is immediately used after initialization and there is no null
checker. One recommended API is Objects.equals(String,String) which can avoid this exception.

  was:
Hello,
I found that the String "queueName"  may cause potential risk of 
NullPointerException since they are immediately used after initialization and there is no
null checker. One recommended API is Objects.equals(String,String) which can avoid this exception.


> Change String.equals to Objects.equals(String,String) to avoid possible NullPointerException
> --------------------------------------------------------------------------------------------
>
>                 Key: YARN-9479
>                 URL: https://issues.apache.org/jira/browse/YARN-9479
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: bd2019us
>            Priority: Major
>         Attachments: 1.patch
>
>
> Hello,
> I found that the String "queueName"  may cause potential risk of 
> NullPointerException since it is immediately used after initialization and there is no
null checker. One recommended API is Objects.equals(String,String) which can avoid this exception.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message