mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (IDEA-78348)
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton
|
||||
final ComboBoxModel model = getComboBox().getModel();
|
||||
for (int i = 0; i < model.getSize(); i++) {
|
||||
DirectoryChooser.ItemWrapper item = (DirectoryChooser.ItemWrapper)model.getElementAt(i);
|
||||
if (fileIndex.getSourceRootForFile(item.getDirectory().getVirtualFile()) == root) {
|
||||
if (item != null && fileIndex.getSourceRootForFile(item.getDirectory().getVirtualFile()) == root) {
|
||||
getComboBox().setSelectedItem(item);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user