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 105965

Summary: NPE from ElementGripFactory$Interval.createInterval when moving class
Product: java Reporter: Jiri Skrivanek <jskrivanek>
Component: RefactoringAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace.

Description Jiri Skrivanek 2007-06-07 08:42:22 UTC
NullPointerException is thrown when you are about to refactor class while moving
a class. It is high priority because it breaks UI commit validation tests. It
appeared sometime between 200706060657 and 200706061403. To reproduce:

- create a java project
- create a new package
- right click the Main.java node and choose Cut
- right click newpackage node and choose Past|Refactor Move...
- click Rafactor in the Move Class dialog and following two exceptions appear:

java.lang.NullPointerException
	at
org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:119)

java.lang.NullPointerException
	at org.netbeans.modules.refactoring.spi.impl.UndoWatcher.watch(UndoWatcher.java:53)

Build 200706070615, JDK1.6.0_02, WindowsXP.
Comment 1 Jiri Skrivanek 2007-06-07 08:42:49 UTC
Created attachment 43352 [details]
Stack trace.
Comment 2 Jiri Prox 2007-06-07 12:44:39 UTC
*** Issue 105960 has been marked as a duplicate of this issue. ***
Comment 3 Jan Becicka 2007-06-07 15:43:10 UTC
Already fixed.
Comment 4 Jiri Skrivanek 2007-06-07 19:29:19 UTC
Verified.