From ffdd4fe8bf10d24694c7c4cd633e23f4abb4ac66 Mon Sep 17 00:00:00 2001 From: "Dmitry.Krasilschikov" Date: Mon, 4 Mar 2019 16:51:09 +0200 Subject: [PATCH] EA-135962 ad hoc NPE fix: RL selected value is null --- .../src/com/intellij/ide/actions/RecentLocationsAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/ide/actions/RecentLocationsAction.java b/platform/platform-impl/src/com/intellij/ide/actions/RecentLocationsAction.java index 29f6f4c5319f..bed3943e1ebf 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/RecentLocationsAction.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/RecentLocationsAction.java @@ -397,7 +397,10 @@ public class RecentLocationsAction extends DumbAwareAction { @NotNull JBList list, @NotNull JBPopup popup, @NotNull Ref navigationRef) { - IdeDocumentHistory.getInstance(project).gotoPlaceInfo(list.getSelectedValue().getInfo()); + RecentLocationItem selectedValue = list.getSelectedValue(); + if (selectedValue != null) { + IdeDocumentHistory.getInstance(project).gotoPlaceInfo(selectedValue.getInfo()); + } navigationRef.set(true); popup.closeOk(null);