You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Latest 2.24.1 panics with following stack when trying to retrieve optional enum field:
stack backtrace:
0: std::panicking::begin_panic
at /Users/arturm/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:519:12
1: <protobuf::reflect::acc::v1::FieldAccessorImpl<M> as protobuf::reflect::acc::v1::FieldAccessorTrait>::get_enum_generic
at /Users/arturm/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.24.1/src/reflect/acc/v1.rs:252:18
2: protobuf::reflect::field::FieldDescriptor::get_enum
at /Users/arturm/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.24.1/src/reflect/field.rs:123:32
3: proto_bug::print_fields
at ./src/main.rs:14:21
4: proto_bug::main
at ./src/main.rs:25:5
Attached minimal sample and proto files proto_bug.zip.
The text was updated successfully, but these errors were encountered:
mardaker
changed the title
Panic when trying to get optional enum fields trhough reflection 2.24.1
Panic when trying to get optional enum fields through reflection 2.24.1
Aug 5, 2021
mardaker
added a commit
to mardaker/rust-protobuf
that referenced
this issue
Aug 5, 2021
Hi
Latest 2.24.1 panics with following stack when trying to retrieve optional enum field:
Attached minimal sample and proto files proto_bug.zip.
Possible fix:
The text was updated successfully, but these errors were encountered: