Prepare array of correct size.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:48:40 +0000 (15:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 13:48:40 +0000 (15:48 +0200)
src/net/pterodactylus/jsite/main/Main.java

index 93d4281..8dcbe5a 100644 (file)
@@ -107,7 +107,7 @@ public class Main {
                                /* okay, it doesn't exist, ignore. */
                        }
                }
-               UIManager.setInstalledLookAndFeels(allLookAndFeelInfos.toArray(new LookAndFeelInfo[0]));
+               UIManager.setInstalledLookAndFeels(allLookAndFeelInfos.toArray(new LookAndFeelInfo[allLookAndFeelInfos.size()]));
        }
 
 }