diff --git a/pkg/models/models.go b/pkg/models/models.go index 8885b7a..61c6798 100644 --- a/pkg/models/models.go +++ b/pkg/models/models.go @@ -7,5 +7,5 @@ type Measurements struct { } func (m *Measurements) Equals(other *Measurements) bool { - return m.PCR0 == other.PCR0 && m.PCR1 == other.PCR1 && m.PCR2 == other.PCR2 + return (m != nil && other != nil) && m.PCR0 == other.PCR0 && m.PCR1 == other.PCR1 && m.PCR2 == other.PCR2 }