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 - NPE from ElementGripFactory$Interval.createInterval when moving class
Summary: NPE from ElementGripFactory$Interval.createInterval when moving class
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 105960 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-07 08:42 UTC by Jiri Skrivanek
Modified: 2007-08-14 12:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (2.20 KB, text/plain)
2007-06-07 08:42 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.