Fix crash in #12104
This crash was due to the fact that we were passing `nullptr` as a `const char*` parameter and relying on that implicitly converting into an empty `absl::string_view`. `absl::string_view` supports that functionality, but starting with C++17 its behavior changes since it's just a type alias for `std::string_view`. `std::string_view` does not have any special conversion for nullptr and so we were just getting crashes. PiperOrigin-RevId: 530431663pull/12681/head
parent
cefad57e8f
commit
d38ba32c49
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue