diff options
author | Tony-Romanov <150126326+Tony-Romanov@users.noreply.github.com> | 2025-01-31 22:41:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-31 22:41:24 +0100 |
commit | 28b42072a94e399b79032d7197a0e9c170e2cff0 (patch) | |
tree | 8d8995918a7da7360413beef50727c2d7c6b2871 | |
parent | 4b004f1c3959ff975de0f02815ff51ef60e268fd (diff) | |
download | ydb-28b42072a94e399b79032d7197a0e9c170e2cff0.tar.gz |
Fix crash when no AppData. (#14043)
-rw-r--r-- | ydb/core/grpc_services/counters/counters.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ydb/core/grpc_services/counters/counters.cpp b/ydb/core/grpc_services/counters/counters.cpp index 342b4ce703d..3188819d12f 100644 --- a/ydb/core/grpc_services/counters/counters.cpp +++ b/ydb/core/grpc_services/counters/counters.cpp @@ -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); } |