Fix edgecase where ref value would become nil and panic the system
This commit is contained in:
parent
9086bf34f4
commit
99a5597547
@ -260,7 +260,7 @@ func (rr RefSet) replaceRef(old, new *Ref) RefSet {
|
||||
}
|
||||
}
|
||||
|
||||
if !found {
|
||||
if !found && new != nil {
|
||||
return append(rr, new)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user