HDFS-7101. Potential null dereference in DFSck#doWork(). Contributed by skrho and Ted Yu.
This commit is contained in:
parent
832852ce4f
commit
113af12cfb
|
@ -354,7 +354,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