handle nil Keys in Equals
This commit is contained in:
parent
8d6dc9b19a
commit
2fb7058ab6
1 changed files with 6 additions and 0 deletions
|
|
@ -724,6 +724,12 @@ func (mk1 *Key) D2OracleEquals(mk2 *Key) bool {
|
|||
}
|
||||
|
||||
func (mk1 *Key) Equals(mk2 *Key) bool {
|
||||
if mk1 == nil && mk2 == nil {
|
||||
return true
|
||||
}
|
||||
if (mk1 == nil) || (mk2 == nil) {
|
||||
return false
|
||||
}
|
||||
if mk1.Ampersand != mk2.Ampersand {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue