mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-04 18:58:17 +01:00
Another NPE
This commit is contained in:
parent
bc0cf80595
commit
c9bb6f36c5
@ -568,11 +568,11 @@ public class GuiListener implements Listener {
|
|||||||
|
|
||||||
String bid = data.getString("Items." + i + ".TopBidder");
|
String bid = data.getString("Items." + i + ".TopBidder");
|
||||||
|
|
||||||
if (bid != null) {
|
if (bid != null && !bid.equals("None")) {
|
||||||
bidder = Methods.getOfflinePlayer(bid);
|
bidder = Methods.getOfflinePlayer(bid);
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getString("Items." + ID + ".Item"));
|
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getString("Items." + i + ".Item"));
|
||||||
|
|
||||||
List<String> lore = new ArrayList<>(itemBuilder.getUpdatedLore());
|
List<String> lore = new ArrayList<>(itemBuilder.getUpdatedLore());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user