Skip to content

[Client Crash] Incorrect NBT values cause clients to crash upon hovering on a bee cage. #706

@Redo11

Description

@Redo11

When the client tries to hover over an improperly created bee cage item, the game client crashes at rendering the tooltip.

// Surprise! Haha. Well, this is awkward.

Time: 2025-10-06 13:46:12
Description: Rendering screen

java.lang.NullPointerException: Cannot invoke "cy.jdkdigital.productivebees.util.GeneValue.getSerializedName()" because "productivity" is null
	at TRANSFORMER/productivebees@1.21.1-13.10.0/cy.jdkdigital.productivebees.util.BeeHelper.populateBeeInfoFromTag(BeeHelper.java:575) ~[productivebees-1.21.1-13.10.0.jar%23814!/:?] {re:classloading}
	at TRANSFORMER/productivebees@1.21.1-13.10.0/cy.jdkdigital.productivebees.util.BeeHelper.populateBeeInfoFromTag(BeeHelper.java:546) ~[productivebees-1.21.1-13.10.0.jar%23814!/:?] {re:classloading}
	at TRANSFORMER/productivebees@1.21.1-13.10.0/cy.jdkdigital.productivebees.common.item.BeeCage.appendHoverText(BeeCage.java:237) ~[productivebees-1.21.1-13.10.0.jar%23814!/:?] {re:classloading}
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.item.ItemStack.getTooltipLines(ItemStack.java:770) ~[client-1.21.1-20240808.144430-srg.jar%23536!/:?]

Version: productivebees@1.21.1-13.10.0
Modpack: ATM2TTS 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions