diff options
author | Alon Albert <aalbert@google.com> | 2022-07-29 15:43:39 -0700 |
---|---|---|
committer | Alon Albert <aalbert@google.com> | 2022-08-01 16:43:36 +0000 |
commit | 1433b19c9048b669b214b7922b541da44f2bf22c (patch) | |
tree | edc89710c24a4fe728b895481c947d0e18729e96 /logcat | |
parent | 745586b48228b0ee9770f4c2e7b9830778f9fadf (diff) | |
download | idea-1433b19c9048b669b214b7922b541da44f2bf22c.tar.gz |
Prevent IndexOutOfBoundsException in HistoryList.getToolTipText()
Fixes: 240740100
Test: n/a
Change-Id: Ie60eeb4e420b4e28438c41a8941598030e6124f4
Diffstat (limited to 'logcat')
-rw-r--r-- | logcat/src/com/android/tools/idea/logcat/filters/FilterTextField.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/logcat/src/com/android/tools/idea/logcat/filters/FilterTextField.kt b/logcat/src/com/android/tools/idea/logcat/filters/FilterTextField.kt index cd504f5fb75..cf79c70bfe4 100644 --- a/logcat/src/com/android/tools/idea/logcat/filters/FilterTextField.kt +++ b/logcat/src/com/android/tools/idea/logcat/filters/FilterTextField.kt @@ -425,6 +425,7 @@ internal class FilterTextField( override fun getToolTipText(event: MouseEvent): String? { val index = selectedIndex + if (index < 0) return null val item = model.getElementAt(index) as? Item ?: return null val cellLocation = getCellBounds(index, index).location val favoriteIconBounds = item.getFavoriteIconBounds(cellLocation) |