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 40590 - Project window should not allow you to add new files if no filesystems mounted
Summary: Project window should not allow you to add new files if no filesystems mounted
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2004-02-27 18:53 UTC by cdhuntsman
Modified: 2005-12-20 15:50 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
ide.log starting with existing new project and attempting to add empty file (22.30 KB, text/plain)
2004-02-27 18:55 UTC, cdhuntsman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cdhuntsman 2004-02-27 18:53:51 UTC
A null pointer exception is encountered when a 
new empty Java file to the project.  The 
following will reliably reproduce the problem:

Project>Project Manager>New...

In the "Create New Project" dialog enter the 
project name, "test", then click "Ok"

Using the "Java 2 Standard Edition" radio button 
selection, click the "Finish" button.

In the Netbeans Explorer click the "Project 
test" tab

Right click the "Project test" and select "Add 
new..." from the pop up menu.

From the templates list in the "New Wizard" 
dialog, select "Java Classes">"Empty Java File"
Click "Next"

In the Target Location, "Folder:" textbox, try 
to enter a path.

For me, the path was to be c:\something, but the 
exception occurs on entering the first 
character, 'c'.

The enclosed ide.log file starts at the point 
the 'test' project exists and a the "Java 
Classes">"Empty Java File" is selected.

The workaround appears to be mounting any file 
system before attempting to add project members.
Comment 1 cdhuntsman 2004-02-27 18:55:10 UTC
Created attachment 13715 [details]
ide.log starting with existing new project and attempting to add empty file
Comment 2 Milan Kubec 2004-03-01 08:30:53 UTC
Reassigning for evaluation. There should be some better message than
exception.
Comment 3 _ tboudreau 2004-03-01 11:34:35 UTC
The NPE was fixed a long time ago in DataFolderPanel.

For the rest, passing to core/projects - it shouldn't let you create files if you have no 
filesystems mounted.  The new build system should take care of this.
Comment 4 Tomas Zezula 2004-03-01 17:02:45 UTC
I agree with Tim.
The new build system uses MasterFS and removed the mounting concept.
It is solution for this issue.
Comment 5 Jesse Glick 2004-03-19 14:42:48 UTC
In new build system, should disable New action when no projects are
open. That would suffice.
Comment 6 Petr Hrebejk 2004-04-08 15:37:53 UTC
The NewFile action is disabled in the new project system and there
should be always one filesys mounted. (The master fs)
Comment 7 Jesse Glick 2004-04-08 17:16:56 UTC
More to the point, File -> New (Ctrl-N) is enabled only if at least
one project is open.
Comment 8 Marian Mirilovic 2005-12-20 15:50:45 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.