diff --git a/lib/go/camli/blobref/blobref.go b/lib/go/camli/blobref/blobref.go index 6131010b3..e2f74f75f 100644 --- a/lib/go/camli/blobref/blobref.go +++ b/lib/go/camli/blobref/blobref.go @@ -106,6 +106,12 @@ func (b *BlobRef) DomID() string { } func (o *BlobRef) Equal(other *BlobRef) bool { + if (o == nil) != (other == nil) { + return false + } + if o == nil { + return true + } return o.hashName == other.hashName && o.digest == other.digest }