Fix: GPv3: Crash because of missing null check

There was a missing null check in the `TreeNode::name()`
function.
This commit is contained in:
Falk David 2023-08-17 14:40:58 +02:00
parent 16c44700e9
commit 5aacbf6c81

@ -597,7 +597,7 @@ inline bool TreeNode::use_onion_skinning() const
}
inline StringRefNull TreeNode::name() const
{
return this->name_ptr;
return (this->name_ptr != nullptr) ? this->name_ptr : StringRefNull();
}
inline const TreeNode &LayerGroup::as_node() const
{