Fix: GPv3: Crash because of missing null check
There was a missing null check in the `TreeNode::name()` function.
This commit is contained in:
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user