HDFS-7101. Potential null dereference in DFSck#doWork(). Contributed by skrho and Ted Yu.
(cherry picked from commit 113af12cfb
)
This commit is contained in:
parent
a48deb1552
commit
f055a53b43
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue