cwd might be empty

This commit is contained in:
Doug MacEachern 2004-09-04 18:57:00 +00:00
parent c9990246da
commit ebf7fb5ced
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ public class TestProcExe extends SigarTestCase {
String cwd = exe.getCwd();
traceln("cwd='" + cwd + "'");
assertTrue(new File(cwd).isDirectory());
if (cwd.length() > 0) {
assertTrue(new File(cwd).isDirectory());
}
traceln("exe='" + exe.getName() + "'");