Prepare array of correct size.
[jSite2.git] / 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()]));
        }
 
 }