From 23bf09e3a05370ef5e862b7b1d91707a3327ed9d Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Wed, 3 Apr 2024 11:03:36 +0300 Subject: [PATCH] [terminal] IDEA-348915 Fix NPE when the new terminal survey dialog opened for test There can be no info about most used shell only if the dialog is opened by the testing action. In the real scenario, the dialog just won't be shown if there are no executed commands because of the check in `BlockTerminalSurveyConfig.checkExtraConditionSatisfied`. EA-1151653 fixed. GitOrigin-RevId: f751b6dcaf46fa67bff26cbf4f3334312ed6b2f5 --- .../terminal/exp/TerminalUsageLocalStorage.kt | 5 +++-- .../exp/feedback/BlockTerminalFeedbackDialog.kt | 12 +++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalUsageLocalStorage.kt b/plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalUsageLocalStorage.kt index 286ef6aac5b5..6830728f08f4 100644 --- a/plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalUsageLocalStorage.kt +++ b/plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalUsageLocalStorage.kt @@ -15,8 +15,9 @@ internal class TerminalUsageLocalStorage : PersistentStateComponent