diff --git a/cmd/get.go b/cmd/get.go index 0fc1289f7..942913ed6 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -123,6 +123,9 @@ var getCmd = &cobra.Command{ fmt.Printf("%sprefix: %s\n", printPrefix, gnmiPathToXPath(notif.Prefix)) fmt.Printf("%salias: %s\n", printPrefix, notif.Alias) for _, upd := range notif.Update { + if upd.Val == nil { + continue + } var value interface{} var jsondata []byte switch val := upd.Val.Value.(type) {