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

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

View File

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