Skip to content

Commit

Permalink
fix segfault when called from older version (#9880)
Browse files Browse the repository at this point in the history
  • Loading branch information
adameat authored Sep 30, 2024
1 parent cd7c71c commit ea6dfcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/core/viewer/viewer_autocomplete.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ class TJsonAutocomplete : public TViewerPipeClient {
}

void ReplyAndPassAway() override {
Result.SetVersion(Viewer->GetCapabilityVersion("/viewer/autocomplete"));
if (Viewer) {
Result.SetVersion(Viewer->GetCapabilityVersion("/viewer/autocomplete"));
}

if (CacheResult) {
if (CacheResult->IsOk()) {
Expand Down

0 comments on commit ea6dfcc

Please sign in to comment.