Skip to content

Commit f0d4c2e

Browse files
author
builduser
committed
Merged branch idea251.release into idea251.x
2 parents 6cc45e8 + 14f9c01 commit f0d4c2e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scala/scala-impl/src/org/jetbrains/plugins/scala/lang/refactoring/util/ScalaRefactoringUtil.scala

+5-3
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,11 @@ object ScalaRefactoringUtil {
521521
.addListener(chooserModel.highlighterPopupListener)
522522
.setItemChosenCallback(chooserModel.elementChosen)
523523
.setItemSelectedCallback { item =>
524-
val psiElement = toHighlight(item)
525-
if (psiElement != null) {
526-
chooserModel.highlightPsi.accept(psiElement)
524+
if (item != null) {
525+
val psiElement = toHighlight(item)
526+
if (psiElement != null) {
527+
chooserModel.highlightPsi.accept(psiElement)
528+
}
527529
}
528530
}
529531
.setRenderer(new DefaultListCellRenderer {

0 commit comments

Comments
 (0)