src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java

Print this page

        

@@ -906,8 +906,11 @@
                 : 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(".");
+        return path != null &&
+                !path.isEmpty() &&
+                !path.endsWith("/") &&
+                !path.endsWith(".");
     }
 }