EA-135962 ad hoc NPE fix: RL selected value is null

This commit is contained in:
Dmitry.Krasilschikov
2019-03-04 17:28:52 +02:00
parent 02b85e97fb
commit ffdd4fe8bf
@@ -397,7 +397,10 @@ public class RecentLocationsAction extends DumbAwareAction {
@NotNull JBList<RecentLocationItem> list,
@NotNull JBPopup popup,
@NotNull Ref<Boolean> 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);