| Summary: | [ErrorHandling] Need better error handling in PerspectiveRegistry | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Raji Akella <raji> | ||||||
| Component: | UI | Assignee: | Krzysztof Daniel <krzysztof.daniel> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | krzysztof.daniel, peeman, pwebster | ||||||
| Version: | 3.2.2 | Keywords: | helpwanted | ||||||
| Target Milestone: | 3.5 M5 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Raji Akella
(1) applies to PerspectiveRegistry.getCustomPersp(String) too. Is there a fix fr this in 3.4? No there is not currently. Raji, Pavel, could you place here reproduction steps? I'd like to create a fix :-) The first point problem occurs by calling a code like this...
try {
PerspectiveRegistry perspRegistry = (PerspectiveRegistry) PlatformUI.getWorkbench().getPerspectiveRegistry();
perspRegistry.getCustomPersp("SomeNonexistingPerspective");
} catch (Exception e) {
e.printStackTrace();
}
Internally causes calling this with reader == null...
XMLMemento memento = XMLMemento.createReadRoot(reader);
Hope this helps.
Created attachment 120686 [details] Part one of solution Kevin, can I take this bug? This patch addresses concern 1 & 2 in the bug description and comment 1. Guys, is it what you expect? Patch for concern 3 will be created soon.
> Guys, is it what you expect?
>
> Patch for concern 3 will be created soon.
>
Seems fine to me. Thanks.
Christopher, thanks. Looks fine. Created attachment 120833 [details]
PatchToBeReleasedSoon
I'm taking this bug :-) Slightly modified patch released to HEAD. |