From: David ‘Bombe’ Roden Date: Sat, 23 May 2009 13:48:40 +0000 (+0200) Subject: Prepare array of correct size. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ec82a43f701abc033111200db79b1fb3522e7422;p=jSite2.git Prepare array of correct size. --- diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java index 93d4281..8dcbe5a 100644 --- a/src/net/pterodactylus/jsite/main/Main.java +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -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()])); } }