We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff65a02 commit 3761df3Copy full SHA for 3761df3
src/main/java/com/ldtteam/blockui/controls/ItemIconWithBlockState.java
@@ -294,7 +294,7 @@ public BlockStateRenderingData getBlockState()
294
*/
295
protected void readBlockStateFromCurrentItemStack()
296
{
297
- if (!(itemStack.getItem() instanceof final BlockItem blockItem))
+ if (itemStack == null || !(itemStack.getItem() instanceof final BlockItem blockItem))
298
299
return;
300
}
0 commit comments