This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45774

Summary: OpenProjectListSettings needs to store List<URL> rather than List<File>
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic InfrastructureAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED FIXED    
Severity: blocker CC: isaoyanagimachi
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535, 46759    

Description Jesse Glick 2004-06-30 20:31:11 UTC
We have a use case for remote projects. No need
for the project chooser to support them directly,
but if some are open, we should at least persist
them correctly. Currently OpenProjectList just calls

File root =
    FileUtil.toFile(p.getProjectDirectory());    
       
names.add(root.getPath());

which will of course throw an NPE for a remote
project.
Comment 1 Jesse Glick 2004-07-29 20:02:32 UTC
This is true of all storage of file paths except for the "last opened
project dir" which is filechooser-specific: open projects, main
project, recent projects.
Comment 2 Petr Hrebejk 2004-08-03 10:34:46 UTC
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v
 <--  OpenProjectList.java
new revision: 1.17; previous revision: 1.16
done
Checking in
projectui/src/org/netbeans/modules/project/ui/OpenProjectListSettings.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectListSettings.java,v
 <--  OpenProjectListSettings.java
new revision: 1.9; previous revision: 1.8
done
Comment 3 Marian Mirilovic 2005-12-20 15:52:16 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.