for (attachmentsMap = Json::getItem(skinMap, "attachments")->_child; attachmentsMap; attachmentsMap = attachmentsMap->_next)
...because getItem(skinMap, "attachments")
is returning nullptr and no check is done before dereferencing. Is there a clean way for me to check this after I load (or before the animation is played) so there isn't a hard crash and a more polite error? Hard crashes might be OK if you're running Xcode or VS, but for someone just testing their work in the game it's frustrating. I'd like to add clean errors when possible. I could modify the source, but I'd rather not change the Spine source.