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 157302

Summary: IllegalArgumentException: No highlight contains the caret.
Product: cnd Reporter: aleder <aleder>
Component: -- Other --Assignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=119626
Issue Type: DEFECT Exception Reporter: 119626
Attachments: stacktrace

Description aleder 2009-01-22 12:44:21 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Linux, 2.6.24-23-generic, i386

User Comments:
aleder: I used to refactor local variables of a function for a several times.

When I tried to refactor already refactored one variable the NetBeans failed to do this and threw an exception.

aleder: I used to refactor local variables of a function for a several times.

When I tried to refactor already refactored one variable the NetBeans failed to do this and threw an exception.



Stacktrace: 
java.lang.IllegalArgumentException: No highlight contains the caret.
        at org.netbeans.modules.cnd.refactoring.actions.InstantRenamePerformer.<init>(InstantRenamePerformer.java:124)
        at org.netbeans.modules.cnd.refactoring.actions.InstantRenamePerformer.performInstantRename(InstantRenamePerformer.java:233)
        at org.netbeans.modules.cnd.refactoring.actions.InstantRenamePerformer.doInstantRename(InstantRenamePerformer.java:216)
        at org.netbeans.modules.cnd.refactoring.actions.InstantRenamePerformer.invokeInstantRename(InstantRenamePerformer.java:176)
        at org.netbeans.modules.cnd.refactoring.actions.InstantRenameAction.actionPerformed(InstantRenameAction.java:65)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:297)
Comment 1 aleder 2009-01-22 12:44:29 UTC
Created attachment 76133 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2009-01-22 12:57:12 UTC
Do you have 6.5 with installed Patch 1? You can attach your messages.log file and I will check if you don't know.

It looks very much as fixed in patch1 IZ#152775
http://www.netbeans.org/issues/show_bug.cgi?id=152775
Comment 3 Vladimir Voskresensky 2009-02-10 16:43:38 UTC

*** This issue has been marked as a duplicate of 152775 ***