Mojira Archive
MCPE-184728

Null pointer dereference (game crash) when rendering custom block

The game performs a null pointer dereference when attempting to render the custom block not found.

I have attached the add-on that causes this crash along with a video to showcase it and the null pointer dereference error.

I have tracked this crash down to be in the BlockGraphics::getTextureCarriedVariations function.

Steps to reproduce:

  1. Import and enable the pack in a world
  2. Run /give @s custom:block

Observed result:
The crash happens the second the game renders a block.

Expected result:
The game does not crash.

Fixed

DuckosM0ds

2024-07-30, 06:01 PM

2024-09-17, 04:06 PM

2024-09-17, 04:06 PM

1

2

Confirmed

1275306

1.21.2 Hotfix

1.21.30.24 Preview, 1.21.30