Community
Participate
Working Groups
Build Identifier: M20110909-1335 Attempt to move static method to another class via Refactor->Move fails with NullPointerException. The exception happens on some classes but not always. Reproducible: Sometimes Steps to Reproduce: 1. Select static method is one class 2. Go to Refactor->Move and select destination class 3. Click OK
Created attachment 205246 [details] Full stacktrace with exception Stacktrace added.
Java tooling bugs go to JDT, not Platform IDE.
This works fine for me using Juno M2. Can you provide a test case?
Ping.
I'm very busy at the moment. Will try to look into test case over weekend!
Please reopen if you have more details.
Interesting part of the exception Caused by: java.lang.NullPointerException at org.eclipse.jdt.internal.corext.refactoring.structure.MoveStaticMembersProcessor.checkInitialConditions(MoveStaticMembersProcessor.java:334) at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkInitialConditions(ProcessorBasedRefactoring.java:203) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:83) However, I don't how we can get an NPE on MoveStaticMembersProcessor.java:334, nor I can reproduce the problem. Please reopen if you have more details e.g. a code snippet to reproduce the problem.