NPE (IDEA-41938)

This commit is contained in:
Dmitry Jemerov
2011-12-30 12:21:55 +01:00
parent d6a3c79af6
commit a4801206c4
@@ -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;