3
0

Fix edgecase where ref value would become nil and panic the system

This commit is contained in:
Tomaž Jerman 2022-01-14 15:29:42 +01:00 committed by Denis Arh
parent 9086bf34f4
commit 99a5597547

View File

@ -260,7 +260,7 @@ func (rr RefSet) replaceRef(old, new *Ref) RefSet {
}
}
if !found {
if !found && new != nil {
return append(rr, new)
}