We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cc45e8 + 14f9c01 commit f0d4c2eCopy full SHA for f0d4c2e
scala/scala-impl/src/org/jetbrains/plugins/scala/lang/refactoring/util/ScalaRefactoringUtil.scala
@@ -521,9 +521,11 @@ object ScalaRefactoringUtil {
521
.addListener(chooserModel.highlighterPopupListener)
522
.setItemChosenCallback(chooserModel.elementChosen)
523
.setItemSelectedCallback { item =>
524
- val psiElement = toHighlight(item)
525
- if (psiElement != null) {
526
- chooserModel.highlightPsi.accept(psiElement)
+ if (item != null) {
+ val psiElement = toHighlight(item)
+ if (psiElement != null) {
527
+ chooserModel.highlightPsi.accept(psiElement)
528
+ }
529
}
530
531
.setRenderer(new DefaultListCellRenderer {
0 commit comments