Skip to content

Commit

Permalink
Fix NPE 2
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Apr 26, 2024
1 parent bb29332 commit 8f6dbd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ public static void dumpItems(Function<String, Void> callback) {

ItemStack itemStack = new ItemStack(itemObj);

String str0 = itemStack.getDisplayName();
try {
String str0 = itemStack.getDisplayName();
jsonObject.addProperty("display", str0);
} catch (Exception e) {
jsonObject.addProperty("exception", e.getMessage());
Expand Down

0 comments on commit 8f6dbd6

Please sign in to comment.