| Summary: | NPE when using content assist in compare | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||||
| Component: | Text | Assignee: | Tomasz Zarna <tomasz.zarna> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.5 | ||||||||
| Target Milestone: | 3.5 M5 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dani Megert
Created attachment 121942 [details]
Patch v01
There is an extra unconfigure()/configure() pair called for on each setInput (which happens when narrowing to an element). TextMergeViewer calls the "enhanced" configuration only once so we end up with a partly configured viewer(s) (configured without IEditorInput on setInput). This result in the situation when we do have editors adapters, actions and so on but on setInput we unconfigure the viewer and configure it old way (additional, enhanced configuration doesn't take place).
The patch removes the unconfigure()/configure() pair from setInput() and at the same time makes sure we do configure a viewer in old fashioned way when no IEditorInput is available for it (it's non-local resource etc).
Created attachment 121943 [details]
mylyn/context/zip
Thanks for the patch. Fixed in HEAD. Available in builds > N20080108-2000. Verified in I20090126-1800. |