mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (IDEA-41938)
This commit is contained in:
@@ -130,6 +130,7 @@ public class FileChooserDescriptor implements Cloneable{
|
||||
* Defines whether file can be chosen or not
|
||||
*/
|
||||
public boolean isFileSelectable(VirtualFile file) {
|
||||
if (file == null) return false;
|
||||
if (file.isDirectory() && myChooseFolders) return true;
|
||||
if (acceptAsJarFile(file)) return true;
|
||||
if (acceptAsGeneralFile(file)) return true;
|
||||
|
||||
Reference in New Issue
Block a user