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 210104 - [72cat] IllegalArgumentException: Called DataObject.find on null
Summary: [72cat] IllegalArgumentException: Called DataObject.find on null
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 13:32 UTC by Michel Graciano
Modified: 2012-04-13 09:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186281


Attachments
stacktrace (5.14 KB, text/plain)
2012-03-26 13:32 UTC, Michel Graciano
Details
stacktrace (3.87 KB, text/plain)
2012-04-09 03:50 UTC, MackSix
Details
stacktrace (3.87 KB, text/plain)
2012-04-11 07:23 UTC, MackSix
Details
stacktrace (3.87 KB, text/plain)
2012-04-11 11:38 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2012-03-26 13:32:14 UTC
Build: NetBeans IDE Dev (Build 20120326-34d2eb3db637)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null
   at org.openide.loaders.DataObject.find(DataObject.java:517)
   at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultImpl.checkChecksum(BackupFacility2.java:245)
   at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultImpl.access$200(BackupFacility2.java:208)
   at org.netbeans.modules.refactoring.spi.BackupFacility2$DefaultHandle.checkChecksum(BackupFacility2.java:198)
   at org.netbeans.modules.refactoring.spi.RefactoringCommit.rollback(RefactoringCommit.java:199)
   at org.netbeans.modules.refactoring.api.RefactoringSession.undoRefactoring(RefactoringSession.java:200)
Comment 1 Michel Graciano 2012-03-26 13:32:17 UTC
Created attachment 117249 [details]
stacktrace
Comment 2 Michel Graciano 2012-03-26 13:47:40 UTC
It happens if I try to undo the refactoring done at issue #210107.
Comment 3 MackSix 2012-04-09 03:50:23 UTC
Created attachment 118004 [details]
stacktrace

1.) Create new project.
2.) Create new Class file in package "newpackage".
3.) Rename Class file to "NewClassRenamed" and refactor.
4.) Delete the package deceleration in the file so it is in the default
package.
5.) Save file.
6.) Click on light bulb with Red badge at top of file and choose "move class to
correct folder". Class is moved to "default package".
7.) Put focus on file in Project Window and click the Undo Button.
8.) Click "Yes" on dialog asking to Undo Rename.

Probably same as http://netbeans.org/bugzilla/show_bug.cgi?id=210883
Comment 4 MackSix 2012-04-11 07:23:23 UTC
Created attachment 118106 [details]
stacktrace

Clicked Undo "Replace Constructor with Builder" and then clicked Redo and this Exception happened.
Comment 5 Jan Becicka 2012-04-11 11:06:08 UTC
Changeset: 9095605d1999
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2012-04-11 13:03
Message:   Issue 210883 - org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\DevelopingJavaBeans\src\developingjavabeans\ExampleApplet1.java@df423958:bd1c74[invalid]
Issue #210104 - [72cat] IllegalArgumentException: Called DataObject.find on null
Comment 6 MackSix 2012-04-11 11:38:24 UTC
Created attachment 118118 [details]
stacktrace

1.) Refactor>>Introduce local extention on a java file. 2.) Undo 3.) Redo and this Exception happens.
Comment 7 Exceptions Reporter 2012-04-12 18:56:25 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=186281
Comment 8 Quality Engineering 2012-04-13 09:49:11 UTC
Integrated into 'main-golden', will be available in build *201204130400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9095605d1999
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue 210883 - org.openide.filesystems.FileStateInvalidException: C:\Users\Mark\Documents\NetBeansProjects\DevelopingJavaBeans\src\developingjavabeans\ExampleApplet1.java@df423958:bd1c74[invalid]
Issue #210104 - [72cat] IllegalArgumentException: Called DataObject.find on null