ZEPPELIN-804 Refactoring registration mechanism on Interpreters

- Checked if path exists or not
This commit is contained in:
Jongyoul Lee 2016-05-20 12:42:47 +09:00
parent 844dccb591
commit 1b3cd0ca2e

View file

@ -124,7 +124,7 @@ public class InterpreterFactory implements InterpreterGroupFactory {
new DirectoryStream.Filter<Path>() {
@Override
public boolean accept(Path entry) throws IOException {
return Files.isDirectory(entry);
return Files.exists(entry) && Files.isDirectory(entry);
}
})) {
String interpreterDirString = interpreterDir.toString();