File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,16 @@ TOriginAttributes ExtractFromDictionaryOverride(const NYTree::IAttributeDictiona
172
172
173
173
TExtensionData ext;
174
174
175
- static const TString FidKey (" fid" );
176
- ext.Fid = attributes->GetAndRemove <NConcurrency::TFiberId>(FidKey, NConcurrency::InvalidFiberId);
175
+ if (attributes) {
176
+ static const TString FidKey (" fid" );
177
+ ext.Fid = attributes->GetAndRemove <NConcurrency::TFiberId>(FidKey, NConcurrency::InvalidFiberId);
177
178
178
- static const TString TraceIdKey (" trace_id" );
179
- ext.TraceId = attributes->GetAndRemove <NTracing::TTraceId>(TraceIdKey, NTracing::InvalidTraceId);
179
+ static const TString TraceIdKey (" trace_id" );
180
+ ext.TraceId = attributes->GetAndRemove <NTracing::TTraceId>(TraceIdKey, NTracing::InvalidTraceId);
180
181
181
- static const TString SpanIdKey (" span_id" );
182
- ext.SpanId = attributes->GetAndRemove <NTracing::TSpanId>(SpanIdKey, NTracing::InvalidSpanId);
182
+ static const TString SpanIdKey (" span_id" );
183
+ ext.SpanId = attributes->GetAndRemove <NTracing::TSpanId>(SpanIdKey, NTracing::InvalidSpanId);
184
+ }
183
185
184
186
result.ExtensionData = Encode (ext);
185
187
return result;
You can’t perform that action at this time.
0 commit comments