openconfig / gnmi

gRPC Network Management Interface
Apache License 2.0
463 stars 196 forks source link

avoid panic case in func Equal(a, b *pb.TypedValue) bool #107

Open karimra opened 3 years ago

karimra commented 3 years ago

This PR avoids panic when using func Equal(a, b *pb.TypedValue) bool with a or b being nil. This is done by using TypedValue.GetValue() instead of TypedValue.Value

hellt commented 2 years ago

Hi @marcushines @robshakir can you please take a look at this?