EA-69633 - IAE: ProjectFileIndexImpl.isInLibrarySource

(e.g. for package with multiple directories)
This commit is contained in:
Anna Kozlova
2015-06-23 12:05:26 +03:00
parent 45c5a5f8c7
commit 0b65146da4
@@ -224,7 +224,7 @@ public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton
oldOne = itemWrapper;
}
}
if (!fileIndex.isInLibrarySource(oldSelection)) {
if (oldSelection == null || !fileIndex.isInLibrarySource(oldSelection)) {
items.add(NULL_WRAPPER);
}
final DirectoryChooser.ItemWrapper selection = chooseSelection(initialTargetDirectorySourceRoot, fileIndex, items, initial, oldOne);