Check for null
This commit is contained in:
parent
9b1741c90e
commit
2ce42f46f8
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue