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 114764 - NPE - during refactoring - rename
Summary: NPE - during refactoring - rename
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: RANDOM
: 116110 116877 118484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-05 14:16 UTC by Jana Maleckova
Modified: 2007-11-01 10:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
114764 (5.76 KB, text/plain)
2007-09-05 14:18 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-09-05 14:16:22 UTC
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709041200) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
not reproducible but happened more then once. 
I have created java desktop application project and opened task list
Application super class and view class from this project is opened in editor as well
I just did refactoring - rename of view class, then I tried to ref. undo/redo, refactoring rename again and then the NPE
was thrown. 

StackTrace:
===========

java.lang.NullPointerException
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:129)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:123)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:123)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:123)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:123)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory$Interval.createInterval(ElementGripFactory.java:123)
	at org.netbeans.modules.refactoring.java.ui.tree.ElementGripFactory.put(ElementGripFactory.java:75)
	at org.netbeans.modules.refactoring.java.api.JavaRefactoringUtils.cacheTreePathInfo(JavaRefactoringUtils.java:343)
	at org.netbeans.modules.refactoring.java.spi.RefactoringVisitor.rewrite(RefactoringVisitor.java:75)
	at org.netbeans.modules.refactoring.java.plugins.RenameTransformer.renameUsageIfMatch(RenameTransformer.java:85)
	at org.netbeans.modules.refactoring.java.plugins.RenameTransformer.visitIdentifier(RenameTransformer.java:47)
	at org.netbeans.modules.refactoring.java.plugins.RenameTransformer.visitIdentifier(RenameTransformer.java:35)
Comment 1 Jana Maleckova 2007-09-05 14:18:37 UTC
Created attachment 48163 [details]
114764
Comment 2 Jan Becicka 2007-09-05 14:39:46 UTC
Checking in ElementGripFactory.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/ui/tree/ElementGripFactory.java,v  <-- 
ElementGripFactory.java
new revision: 1.5; previous revision: 1.4
done
Comment 3 Jan Becicka 2007-10-01 15:12:27 UTC
*** Issue 116877 has been marked as a duplicate of this issue. ***
Comment 4 Jan Becicka 2007-10-11 07:19:28 UTC
*** Issue 118484 has been marked as a duplicate of this issue. ***
Comment 5 Jan Becicka 2007-10-17 11:37:56 UTC
*** Issue 116110 has been marked as a duplicate of this issue. ***
Comment 6 Jana Maleckova 2007-11-01 10:28:21 UTC
verified on

Product Version: NetBeans IDE Dev (Build 20071101060911)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)