diff --git a/tiledb/sm/serialization/array_schema.cc b/tiledb/sm/serialization/array_schema.cc index 8c222f0bf502..aa3d299ad4b5 100644 --- a/tiledb/sm/serialization/array_schema.cc +++ b/tiledb/sm/serialization/array_schema.cc @@ -1909,7 +1909,9 @@ void serialize_load_array_schema_request( LoadArraySchemaRequest load_array_schema_request_from_capnp( capnp::LoadArraySchemaRequest::Reader& reader) { tdb_unique_ptr decoded_config = nullptr; - throw_if_not_ok(config_from_capnp(reader.getConfig(), &decoded_config)); + if (reader.hasConfig()) { + throw_if_not_ok(config_from_capnp(reader.getConfig(), &decoded_config)); + } // We intentionally do not use the includeEnumerations field, as it is stored // in the Config and set using the LoadArraySchemaRequest constructor. return LoadArraySchemaRequest(*decoded_config);