mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
popups: fix NPE
This commit is contained in:
@@ -96,7 +96,7 @@ public class IntroduceTargetChooser {
|
||||
|
||||
JBPopup popup = JBPopupFactory.getInstance().createPopupChooserBuilder(expressions)
|
||||
.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
|
||||
.setSelectedValue(expressions.get(selection > -1 ? selection : null), true)
|
||||
.setSelectedValue(expressions.get(selection > -1 ? selection : 0), true)
|
||||
.setAccessibleName(title)
|
||||
.setTitle(title)
|
||||
.setMovable(false)
|
||||
|
||||
Reference in New Issue
Block a user