HDFS-7101. Potential null dereference in DFSck#doWork(). Contributed by skrho and Ted Yu.

This commit is contained in:
Akira Ajisaka 2018-04-12 17:47:37 +09:00
parent 832852ce4f
commit 113af12cfb
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ public class DFSck extends Configured implements Tool {
BufferedReader input = new BufferedReader(new InputStreamReader( BufferedReader input = new BufferedReader(new InputStreamReader(
stream, "UTF-8")); stream, "UTF-8"));
String line = null; String line = null;
String lastLine = null; String lastLine = NamenodeFsck.CORRUPT_STATUS;
int errCode = -1; int errCode = -1;
try { try {
while ((line = input.readLine()) != null) { while ((line = input.readLine()) != null) {