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

Steve Loughran commented on HDFS-8043:
--------------------------------------

you can reorder the condition to say

{code}
if (basedir != null) {
 if (deleteDfsDir) { delete-now } else {delete-later} 
}

It'll be less confusing that way


> NPE in MiniDFSCluster teardown
> ------------------------------
>
>                 Key: HDFS-8043
>                 URL: https://issues.apache.org/jira/browse/HDFS-8043
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>         Environment: jenkins
>            Reporter: Steve Loughran
>            Assignee: Brahma Reddy Battula
>         Attachments: HDFS-8043-002.patch, HDFS-8043.patch
>
>
> NPE surfacing in {{MiniDFSCluster.shutdown}} during test teardown 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to