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.
There were a handful of bugs related to JavaScript refactoring that I fixed in changeset b5a5bdef0148: http://hg.netbeans.org/main/rev/b5a5bdef0148 Fix a series of bugs around JavaScript refactoring. Several of these are dupes, but there are 3-4 distinct issues here. 135290: NullPointerException at org.netbeans.modules.refactoring.javascript.RetoucheUtils.getClasspathInfoFor 136830: AssertionError when refactoring .js 136055: Find usages throws an error message. 135392: NPE when renaming JavaScript outside of the editor 135477: Module JavaScript Refactoring threw java.lang.NullPointerException 136616: NullPointerException at java.lang.String.indexOf 136111: NullPointerException at java.lang.String.indexOf All together this represents a changeset I believe we should release in a patch. The code fixes are pretty simple; some null pointer checks, some code to ensure that refactoring is only run in project types that support refactoring, and some code to ensure that the refactoring name is valid. There are a number of duplicates for the above issues reported via the exceptions feedback tool. Therefore, I think it's important that we port this to the fixes branch, and rather than nominating each and every issue I thought a meta issue covering them all was clearer.
Fixed in 6.5, should fix in 6.1 so marking with the 61fixes2-candidate status whiteboard key.
*** Issue 135477 has been marked as a duplicate of this issue. ***
*** Issue 135290 has been marked as a duplicate of this issue. ***
*** Issue 135392 has been marked as a duplicate of this issue. ***
*** Issue 136055 has been marked as a duplicate of this issue. ***
*** Issue 136111 has been marked as a duplicate of this issue. ***
*** Issue 136616 has been marked as a duplicate of this issue. ***
*** Issue 136830 has been marked as a duplicate of this issue. ***
QA, please verify this fix till 12-Jun-2008, so it can be part of NB 6.1 patch 2.
There was a typo in the original patch, thanks to Martin Schovanek for catching it. I've added additional changeset 279b04701656 which should be included in the release branch as well.
v.
fix backported into release61_fixes branch http://hg.netbeans.org/release61_fixes/rev/411a5491d2af
Issue 136830 is not fixed by this fix. See the issue for details.