src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java
Print this page
*** 906,913 ****
: name.substring(0, dot) + "@2x" + name.substring(dot);
return (slash < 0) ? name2x : path.substring(0, slash + 1) + name2x;
}
private static boolean isValidPath(String path) {
! return !path.isEmpty() && !path.endsWith("/") && !path.endsWith(".");
}
}
--- 906,916 ----
: name.substring(0, dot) + "@2x" + name.substring(dot);
return (slash < 0) ? name2x : path.substring(0, slash + 1) + name2x;
}
private static boolean isValidPath(String path) {
! return path != null &&
! !path.isEmpty() &&
! !path.endsWith("/") &&
! !path.endsWith(".");
}
}