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 194405 - [70cat] NullPointerException at org.netbeans.modules.project.ant.FileChooserAccessory.copyFiles
Summary: [70cat] NullPointerException at org.netbeans.modules.project.ant.FileChooserA...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 00:30 UTC by Chiana
Modified: 2011-03-07 05:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 152252


Attachments
stacktrace (2.47 KB, text/plain)
2011-01-17 00:30 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2011-01-17 00:30:40 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6474-on-110115)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
Chiana: Tried to add multiple .jar to a project, unsure if I used correct method.

GUEST: Trying to rename a project, plus the project folder.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.project.ant.FileChooserAccessory.copyFiles(FileChooserAccessory.java:409)
   at org.netbeans.modules.project.ant.FileChooserAccessory.copyFilesIfNecessary(FileChooserAccessory.java:214)
   at org.netbeans.api.project.ant.FileChooser.getSelectedPaths(FileChooser.java:140)
   at org.netbeans.modules.java.api.common.project.ui.LibrariesNode$AddFolderAction.actionPerformed(LibrariesNode.java:742)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
Comment 1 Chiana 2011-01-17 00:30:43 UTC
Created attachment 105054 [details]
stacktrace
Comment 2 Chiana 2011-01-17 00:36:33 UTC
Well, I didn't use the correct method, but after correcting /1.jar , 2.jar/ to /"1.jar" "2.jar"/ it worked...

I don't change the status of this since i can see there are others with other types of NPE's, please feel free to investigate...
Comment 3 Jesse Glick 2011-03-05 20:22:29 UTC
core-main #989ed5521ca4
Comment 4 Quality Engineering 2011-03-07 05:35:54 UTC
Integrated into 'main-golden', will be available in build *201103070000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/989ed5521ca4
User: Jesse Glick <jglick@netbeans.org>
Log: #194405: [70cat] NullPointerException at org.netbeans.modules.project.ant.FileChooserAccessory.copyFiles