diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java index 5749249e..029354b5 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcExe.java @@ -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() + "'");