commit | 764f1ed02734e04befab634464bf66028ae62930 | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Thu Mar 24 11:46:38 2022 +0100 |
committer | Andrea Campanella <andrea@opennetworking.org> | Thu Mar 24 11:46:38 2022 +0100 |
tree | 4f09a410d5b733303bcce59946996b1651fc7419 | |
parent | 0c06492d0be5c2cf3a74b2f0a61066a0415bf754 [diff] [blame] |
Updating to latest protos and device-management interface, releasing 2.0 Change-Id: I2d2ebf5b305d6d06b8d01c49d4d67e7ff050f5d4
diff --git a/vendor/google.golang.org/protobuf/proto/checkinit.go b/vendor/google.golang.org/protobuf/proto/checkinit.go index d7c9923..3e9a6a2 100644 --- a/vendor/google.golang.org/protobuf/proto/checkinit.go +++ b/vendor/google.golang.org/protobuf/proto/checkinit.go
@@ -12,6 +12,12 @@ // CheckInitialized returns an error if any required fields in m are not set. func CheckInitialized(m Message) error { + // Treat a nil message interface as an "untyped" empty message, + // which we assume to have no required fields. + if m == nil { + return nil + } + return checkInitialized(m.ProtoReflect()) }