Skip to content

Commit

Permalink
🐛 Fix NPE #11805
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jun 23, 2024
1 parent 61b73e2 commit dd97396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/attribute_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -2835,7 +2835,7 @@ func replaceAttributeViewBlock(operation *Operation, tx *Transaction) (err error
// 检查是否已经存在绑定块,如果存在的话则重新绑定
for _, keyValues := range attrView.KeyValues {
for _, value := range keyValues.Values {
if value.BlockID == operation.NextID {
if av.KeyTypeBlock == value.Type && nil != value.Block && value.BlockID == operation.NextID {
if !operation.IsDetached {
bindBlockAv0(tx, operation.AvID, node, tree)
value.IsDetached = false
Expand Down

0 comments on commit dd97396

Please sign in to comment.