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.
Summary: | NullPointerException at org.netbeans.modules.refactoring.javascript.RetoucheUtils.getClasspathInfoFor | ||
---|---|---|---|
Product: | javascript | Reporter: | unr303 <unr303> |
Component: | Editor | Assignee: | Torbjorn Norbye <tor> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | deepakjacob |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=36233 | ||
Issue Type: | DEFECT | Exception Reporter: | 36233 |
Attachments: |
ide log
ide log |
Description
unr303
2008-05-19 07:01:29 UTC
Created attachment 61544 [details]
ide log
This is with beta -- 6.1 final is out, can you try that? Your sample refactors correctly for me. (This is in a Rails project type. What kind of project is your JavaScript file in?) By the way, to rename local variables like this, just invoke Ctrl-R -- it will rename the symbol instantly (and if that isn't possible, e.g. because you're trying it on a symbol that is really global, it will open the rename refactoring dialog.) Latest trunk build new java project new java package new javascript file function b(){ var c = 1; var n = c; } refactor/rename c -> exception ctrl-r works, refactor/rename doesnt Created attachment 61592 [details]
ide log
And as you've said doing ctrl-r for file with content var c = 1; var n = c; (global vars) generates exception. This issue has already 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=36233 This was just fixed in 6.5; tracked in issue 136936 to hopefully get it backported to 6.1 as well. *** This issue has been marked as a duplicate of 136936 *** *** Issue 138314 has been marked as a duplicate of this issue. *** |