Check for null

This commit is contained in:
Sam Harwell 2012-11-01 11:01:48 -05:00
parent 9b1741c90e
commit 2ce42f46f8
1 changed files with 4 additions and 0 deletions

View File

@ -1023,6 +1023,10 @@ public abstract class BaseTest {
}
protected void eraseFiles() {
if (tmpdir == null) {
return;
}
File tmpdirF = new File(tmpdir);
String[] files = tmpdirF.list();
for(int i = 0; files!=null && i < files.length; i++) {