[
https://issues.apache.org/jira/browse/YARN-9479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047325#comment-18047325
]
ASF GitHub Bot commented on YARN-9479:
--------------------------------------
github-actions[bot] closed pull request #738: [YARN-9479] Use
Objects.equals(String,String) to avoid possible NullPointerException
URL: https://github.com/apache/hadoop/pull/738
> 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
> Labels: pull-request-available
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]