| Summary: | NPE in getViewStack() breaks key bindings F5 - F8 | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Stephan Herrmann <stephan.herrmann> |
| Component: | UI | Assignee: | Eric Moffatt <emoffatt> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dreyer.ray, emoffatt, Michael_Rennie, pwebster |
| Version: | 4.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Stephan Herrmann
Happened in an SDK 4.3 plus EGit and some Mylyn. Happened again, so this is my current perspective layout: 4 visible stacks: +-------+---+ | A | C | +-------+ | | B +---+ | | D | +-------+---+ A = Debug / Type Hierarchy / Console B = Editors C = Variables / Breakpoints D = Display Minimized stacks: Left: E = Call Hierarchy (multiple) / Search / History F = JUnit Right: G = Outline I was debugging a test, so potentially all these received events for activation: - Debug / Console / JUnit Same symptoms: exception logged plus loss of F-key bindings. When activated, JUnit overlaps most of stack A and expands slightly over B, too. Today I was using 4.3.1 RC2, aka M20130829-1300. This time after "reset perspective" I ran into what looks like bug 398186. FWIW: I'm using the Classic theme. moving to Platform UI form comment. Debug is checking for nulls while using the page API, and the exception is coming from WorkbenchPage.
For example the Debug code just prior to the exception does the following:
IViewPart part = page.findView(getViewId());
if (part != null) {
IViewPart[] viewStack = page.getViewStack(part);
if (viewStack != null && viewStack.length > 0) {
..
}
}
The code in platform UI looks a bit suspicious:
MPart siblingPart = child instanceof MPart ? (MPart) child : (MPart) ((MPlaceholder) child).getRef();
Object siblingObject = siblingPart.getObject();
*** Bug 416685 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 398433 *** |