TheCreepySheep Posted December 29, 2014 Posted December 29, 2014 Why is my FOR loop resulting in NullPointerException? for (String s: config.get(general, "itemsDisabled", new String[] {"minecraft:dirt", "minecraft:stone"}).getStringList()) { try { itemsDisabled.add(s); LogHelper.info(s); } catch (Exception e) { LogHelper.error(e); } public static List<String> itemsDisabled; Error occurs while trying to add to itemsDisabled. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.