We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465254c commit 7fc26feCopy full SHA for 7fc26fe
1 file changed
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatSVGIcon.java
@@ -524,7 +524,8 @@ private static SVGDocument loadSVGUncached( URL url ) {
524
private URL getIconURL( String name, boolean dark ) {
525
if( dark ) {
526
int dotIndex = name.lastIndexOf( '.' );
527
- name = name.substring( 0, dotIndex ) + "_dark" + name.substring( dotIndex );
+ if ( dotIndex > 0 )
528
+ name = name.substring( 0, dotIndex ) + "_dark" + name.substring( dotIndex );
529
}
530
531
ClassLoader cl = (classLoader != null) ? classLoader : FlatSVGIcon.class.getClassLoader();
0 commit comments