| Summary: | NullPointerException in JSPRenameChange | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Mauro Molinari <mauromol> |
| Component: | jst.jsp | Assignee: | Nick Sandonato <nsand.dev> |
| Status: | RESOLVED FIXED | QA Contact: | Nick Sandonato <nsand.dev> |
| Severity: | normal | ||
| Priority: | P3 | CC: | thatnitind |
| Version: | 3.3.1 | ||
| Target Milestone: | 3.3.2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mauro Molinari
Thanks, Mauro. This NPE is likely caused by an editor that has not been instantiated yet (like the unfocused editors after launching a workbench). Refactoring then appeared to work out fine after that for the type renaming in the cases I ran. I've released the change. Thanks to you Nick! This is very good news, because my refactorings were failing too often :-( By the way (it's not about this bug), could those editor be the ones I sometimes see as completely blank when switching to them after startup? There's a bug about this: bug #240636. Do you have any idea or suggestion to reproduce that problem? Could there be a common cause? (In reply to comment #2) > Thanks to you Nick! This is very good news, because my refactorings were > failing too often :-( > > By the way (it's not about this bug), could those editor be the ones I > sometimes see as completely blank when switching to them after startup? There's > a bug about this: bug #240636. Do you have any idea or suggestion to reproduce > that problem? Could there be a common cause? You're welcome. You've been a great help in tracking down all of these refactoring bugs. I appreciate you helping us out. There may be some relation. This NPE came from using platform API which explicitly states that it will return null for editors that haven't been instantiated yet. So I don't think that's a particular problem. It sounds like that should be expected. Maybe the same oversight we made is being done in bug 240636. |