diff --git a/Auto-Tune/src/unprotesting/com/github/Commands/AutoTuneGUIShopUserCommand.java b/Auto-Tune/src/unprotesting/com/github/Commands/AutoTuneGUIShopUserCommand.java index 2935799..9a78dd4 100644 --- a/Auto-Tune/src/unprotesting/com/github/Commands/AutoTuneGUIShopUserCommand.java +++ b/Auto-Tune/src/unprotesting/com/github/Commands/AutoTuneGUIShopUserCommand.java @@ -388,7 +388,14 @@ public static String loadPriceDisplay(String item) { double currentPrice = getItemPrice(item, false); float timePeriod = (float) Config.getTimePeriod(); float timePeriodsInADay = (float) (1 / (timePeriod / 1440)); - List newMap = Main.getItemPrices().get(item).prices; + List newMap; + try{ + newMap = Main.getItemPrices().get(item).prices; + } + catch(NullPointerException ex){ + return (ChatColor.WHITE + Config.getCurrencySymbol() + df2.format(currentPrice) + ChatColor.DARK_GRAY + + " - " + ChatColor.GRAY + "%0.0"); + } if (newMap.size() <= timePeriodsInADay) { return (ChatColor.WHITE + Config.getCurrencySymbol() + df2.format(currentPrice) + ChatColor.DARK_GRAY + " - " + ChatColor.GRAY + "%0.0");