Skip to content

Commit

Permalink
Fix NPE in ItemsTooltipLineHandler (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis authored Jan 10, 2025
1 parent 4dace1f commit fd08a93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/codechicken/nei/ItemsTooltipLineHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ private List<ItemStack> groupingItemStacks(List<ItemStack> items) {

for (ItemStack stack : items) {
final NBTTagCompound nbTag = StackInfo.itemStackToNBT(stack, true);
if (nbTag == null) continue;

final String GUID = StackInfo.getItemStackGUID(stack);

if (!unique.containsKey(GUID)) {
Expand Down

0 comments on commit fd08a93

Please sign in to comment.