🐛 Fix a npe

This commit is contained in:
Daniel 2025-01-05 22:45:25 +08:00
parent 126e8cec82
commit e3cce8b58b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -221,6 +221,10 @@ func (value *Value) IsEdited() bool {
}
func (value *Value) IsEmpty() bool {
if nil == value {
return true
}
switch value.Type {
case KeyTypeBlock:
if nil == value.Block {