Skip to content

Commit

Permalink
🐛 Fix a npe
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 5, 2025
1 parent 126e8ce commit e3cce8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kernel/av/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e3cce8b

Please sign in to comment.