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 258604 - IllegalArgumentException: Called DataObject.find on null
Summary: IllegalArgumentException: Called DataObject.find on null
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-31 13:44 UTC by helderneres
Modified: 2016-08-08 07:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 223280


Attachments
stacktrace (2.00 KB, text/plain)
2016-03-31 13:44 UTC, helderneres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description helderneres 2016-03-31 13:44:20 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Windows 10

User Comments:
helderneres: Rename with refactoring function a folder into main/resources of a maven project.




Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null
   at org.openide.loaders.DataObject.find(DataObject.java:608)
   at org.openide.loaders.DataFolder.findFolder(DataFolder.java:540)
   at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder.setName(PackageRename.java:278)
   at org.netbeans.modules.refactoring.java.plugins.PackageRename$PackageRenamePlugin$RenameNonRecursiveFolder$1.run(PackageRename.java:208)
   at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
   at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:519)
Comment 1 helderneres 2016-03-31 13:44:21 UTC
Created attachment 159069 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-08 07:59:17 UTC
Refactor/move is not supported for source packages; rename does not allow to specify target source root. Renaming works OK. Please provide more specific instructions for defect reproduction.