--- old/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2014-07-11 15:46:51.000000000 +0400 +++ new/src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java 2014-07-11 15:46:51.000000000 +0400 @@ -908,6 +908,9 @@ } private static boolean isValidPath(String path) { - return !path.isEmpty() && !path.endsWith("/") && !path.endsWith("."); + return path != null && + !path.isEmpty() && + !path.endsWith("/") && + !path.endsWith("."); } }