[ 
https://issues.apache.org/jira/browse/HDFS-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470609#comment-16470609
 ] 

Daryn Sharp commented on HDFS-13452:
------------------------------------

# Is it valid for {{representativeRecord}} to return null?  If no, ignoring it 
is wrong. 
# I don't see how flipping the args in the assert matters since the LHS is 
"more likely" (yet unlikely) to be null?

> Some Potential NPE 
> -------------------
>
>                 Key: HDFS-13452
>                 URL: https://issues.apache.org/jira/browse/HDFS-13452
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: lujie
>            Priority: Major
>         Attachments: HDFS-13542_1.patch
>
>
> We have developed a static analysis tool 
> [NPEDetector|https://github.com/lujiefsi/NPEDetector] to find some potential 
> NPE, just as descroped in HDFS-13451. We found another two bug or bad 
> practice after improve the tool.
> attach the patch here



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to