Gamepiaynmo / CustomPlayerModel

Customize your player model in Minecraft.
MIT License
16 stars 2 forks source link

NullPointerException when trying to render attachment with empty list #2

Closed SupersonicNK closed 3 years ago

SupersonicNK commented 3 years ago

Version Info

Minecraft: 1.16.5 Forge: 36.0.43 CPM: 2.1.0

Report Info

Upon rendering an attachment that has been given an empty list, the game crashes with the following reason: java.lang.NullPointerException: Rendering entity in world This has been tested with the following attachments so far, resulting in the same reason (but a different stacktrace):

Hiding armor does work via the client config.

Steps to reproduce

  1. Create a new model or use a pre-existing model. Disable an attachment by providing it an empty list.
  2. Hold an item or equip an armor in the slot that would normally render using that attachment.
  3. Allow the game to render it (via third-person, inventory, or cpm model selection screen.)

Crash Reports

item_right: https://pastebin.com/ebdFXG0d helmet: https://pastebin.com/nW9kd3HK (all armor crashes point to the same line at the top of the stacktrace.) elytra: https://pastebin.com/ZC8s8Xeb parrot_left: https://pastebin.com/iE0MykJe

Gamepiaynmo commented 3 years ago

Fixed in version 2.1.1 beta.