From 01eb2612b25549fcf8e8d7698412c004f870f75e Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Tue, 26 Jun 2018 17:26:00 +0300 Subject: [PATCH] [vcs-log] fix illegal argument exception in speed search Row can be null if text is not found. EA-120658 --- .../src/com/intellij/vcs/log/ui/table/VcsLogSpeedSearch.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/table/VcsLogSpeedSearch.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/table/VcsLogSpeedSearch.java index 6be047f541ba..cc8cc1b79ccc 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/table/VcsLogSpeedSearch.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/table/VcsLogSpeedSearch.java @@ -56,7 +56,8 @@ public class VcsLogSpeedSearch extends SpeedSearchBase { } @Override - protected void selectElement(@NotNull Object row, @NotNull String selectedText) { + protected void selectElement(@Nullable Object row, @NotNull String selectedText) { + if (row == null) return; myComponent.jumpToRow((Integer)row); }