Skip to content
#

efficiency

Here are 335 public repositories matching this topic...

SecretX33
SecretX33 commented Oct 28, 2021

Description

NullPointerException is thrown when serializing an ItemStack that is made of AIR. That happens because XItemStack#serialize calls getItemMeta on the item passed as a parameter and uses the result of it without checking if it is null before.

Code (Kotlin)

XItemStack.serialize(ItemStack(Material.AIR, 1), MemoryConfiguration())

Stacktrace: http

Improve this page

Add a description, image, and links to the efficiency topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the efficiency topic, visit your repo's landing page and select "manage topics."

Learn more