public class Test { public String foo(String[] path) { if (path != null) return null; String p = path[0]; return ""; } }