File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -156,9 +156,12 @@ class TDynamicConfigClient::TImpl : public TClientImplCommon<TDynamicConfigClien
156
156
std::string config;
157
157
std::map<uint64_t , std::string> volatileConfigs;
158
158
if (Ydb::DynamicConfig::GetConfigResult result; any && any->UnpackTo (&result)) {
159
- clusterName = result.identity (0 ).cluster ();
160
- version = result.identity (0 ).version ();
161
- config = result.config (0 );
159
+ // only if they are present
160
+ if (result.identity_size () && result.config_size ()) {
161
+ clusterName = result.identity (0 ).cluster ();
162
+ version = result.identity (0 ).version ();
163
+ config = result.config (0 );
164
+ }
162
165
for (const auto & config : result.volatile_configs ()) {
163
166
volatileConfigs.emplace (config.id (), config.config ());
164
167
}
You can’t perform that action at this time.
0 commit comments