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 155618 - IllegalArgumentException: Tried to pass null fo arg
Summary: IllegalArgumentException: Tried to pass null fo arg
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 06:25 UTC by joxaren
Modified: 2009-04-15 07:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 144461


Attachments
stacktrace (6.43 KB, text/plain)
2008-12-17 06:25 UTC, joxaren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joxaren 2008-12-17 06:25:39 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.5, i386

User Comments:
joxaren: Running MacOSX 10.5.5 with Java 5.

Following the Paint appication wizard. During step 4 (see below, Name, Icon and Location Panel) the wizard behaves strangly and end up with the above exception.

1. In the Projects window, right-click the Paint module's project node and choose New > Other. In the New File wizard, choose Module Development under Categories and Action under File Types. Click Next.
2. In the Action Type panel, accept the defaults. Click Next.
3. In the GUI Registration panel, select Global Menu Item, and select Global Toolbar Button. Set the following values:
Category: Edit
Menu: File
Position: Anywhere you want it to be!
Toolbar: File
Position: Anywhere you want it to be!
Note: Where you position the action is not important, as long as it is in the File menu and in the File toolbar.
You should now see the following:

Click Next.
4. In the Name, Icon, and Location panel, type NewCanvasAction in Class Name and type New Canvas in Display Name.
In Icon, browse to this icon



Stacktrace: 
java.lang.IllegalArgumentException: Tried to pass null fo arg
        at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1234)
        at org.netbeans.modules.apisupport.project.ui.wizard.BasicWizardIterator$BasicDataModel.addCreateIconOperation(BasicWizardIterator.java:223)
        at org.netbeans.modules.apisupport.project.ui.wizard.action.DataModel.regenerate(DataModel.java:226)
        at org.netbeans.modules.apisupport.project.ui.wizard.action.DataModel.getCreatedModifiedFiles(DataModel.java:351)
        at org.netbeans.modules.apisupport.project.ui.wizard.action.NameIconLocationPanel.checkValidity(NameIconLocationPanel.java:163)
        at org.netbeans.modules.apisupport.project.ui.wizard.action.NameIconLocationPanel.updateData(NameIconLocationPanel.java:130)
Comment 1 joxaren 2008-12-17 06:25:45 UTC
Created attachment 75062 [details]
stacktrace
Comment 2 rmichalsky 2009-04-09 14:59:13 UTC
fixed in core-main #ec462531d893
Comment 3 Quality Engineering 2009-04-15 07:49:09 UTC
Integrated into 'main-golden', will be available in build *200904150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ec462531d893
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: #155618: test if FileObject for chosen icon is available