| Summary: | [breadcrumb]NPE in LaunchView CopyToClipboard action after activating breadcrumb | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Teodor Madan <teodor.madan> | ||||||
| Component: | Debug | Assignee: | Pawel Piech <pawel.1.piech> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | Michael_Rennie, pawel.1.piech | ||||||
| Version: | 3.6 | Flags: | Michael_Rennie:
review+
|
||||||
| Target Milestone: | 3.7 RC1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Teodor Madan
Created attachment 191744 [details]
Proposed fix.
Contract with TreeSelection constructor is to pass null for an empty selection. This is the reason of the jface NPE.
Refactor handling of empty selection to not need to create an empty TreeSelection object
Hi Mike, I'd like to commit this for RC1, if it's still open. The fix is safe in that it only affects the narrow breadcrumb scenario. Updated priority to reflect that the bug affects our product. Created attachment 195113 [details]
Original patch.
I wrote almost identical solution before I found this bug.
+1 patch works fine Thanks Mike, I committed the change. |