From ae32153048f4efe08cd8e2b224ff8954164d8b63 Mon Sep 17 00:00:00 2001 From: Aydar Mukhametzyanov Date: Tue, 7 Jul 2026 12:52:42 +0200 Subject: [PATCH] [platform UI][se] IJPL-249545 Ensure selected indexes are valid for the current model state (cherry picked from commit 5f3f3f61cc2cb464d3e411eeb755183923ac5a34) IJ-CR-213188 GitOrigin-RevId: 435d4c797e7205514b30389b64002086a8e54055 --- platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt b/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt index 2387b2bde0d2..84b5df194811 100644 --- a/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt +++ b/platform/searchEverywhere/frontend/src/ui/SePopupContentPane.kt @@ -624,6 +624,8 @@ class SePopupContentPane( @RequiresEdt private suspend fun elementsSelected(indexes: IntArray, modifiers: Int) { ThreadingAssertions.assertEventDispatchThread() + if (indexes.isEmpty() || indexes.max() >= resultListModel.size) return + var nonItemDataCount = 0 // Calculate items with indexes considering some non-item rows on top (for example, notification row).