Skip to content

Commit

Permalink
Fix crash when no AppData. (#14043)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-Romanov authored Jan 31, 2025
1 parent 4b004f1 commit 28b4207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/grpc_services/counters/counters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ NYdbGrpc::ICounterBlockPtr TServiceCounterCB::operator()(const char* serviceName
auto block = MakeIntrusive<TYdbCounterBlock>(Counters, serviceName, requestName, streaming);

NYdbGrpc::ICounterBlockPtr res(block);
if (ActorSystem && AppData(ActorSystem)->FeatureFlags.GetEnableDbCounters()) {
if (ActorSystem && HasAppData() && AppData(ActorSystem)->FeatureFlags.GetEnableDbCounters()) {
res = MakeIntrusive<TYdbCounterBlockWrapper>(block, serviceName, requestName, streaming);
}

Expand Down

0 comments on commit 28b4207

Please sign in to comment.