WolfyScript / viewportl

A Minecraft Inventory GUI framework, designed to easily create reactive GUIs. Based on the well known Signal Reactivity System.
GNU General Public License v3.0
68 stars 12 forks source link

NullPointerException while loading world_custom_item.store #21

Closed WolfyScript closed 3 years ago

WolfyScript commented 3 years ago

Error Stack Trace: https://pastebin.ubuntu.com/p/HSb3Gfg236/

Affected line: https://github.com/WolfyScript/WolfyUtilities/blob/8aeb507a2993cb84665cde0ce7610fd1d42cf618/core/src/main/java/me/wolfyscript/utilities/util/world/WorldCustomItemStore.java#L78

The location that is provided isn't actually always null as intended. That only seems to happens when the previous location, that a block was saved to, no longer exists due to a renamed/deleted world etc. Make sure it is never null to prevent this error.