| Summary: | [Forms] NullPointerException in ExpandableComposite | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | David Pérez <david.perez.ingeniero> |
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cgold, prakash, remy.suen |
| Version: | 3.6.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Forms maintained by PDE Forms is owned by UA. What are the steps to reproduce this? It has happened to me when quitting an RCP application, which uses a Section. The section is populated with a Composite that holds other controls. (In reply to comment #4) The section is placed inside a view. This is the same problem as was reported in Bug 319127. Closing as duplicate. *** This bug has been marked as a duplicate of bug 319127 *** That's true, I'm also using the NO_TITLE style. |
java.lang.NullPointerException at org.eclipse.ui.forms.widgets.ExpandableComposite$5.focusLost(ExpandableComposite.java:588) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:143) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058) at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2618) at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1920) at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:4504) at org.eclipse.swt.widgets.Canvas.WM_KILLFOCUS(Canvas.java:434) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4193) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4886) at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method) at org.eclipse.swt.widgets.Control.forceFocus(Control.java:995) at org.eclipse.swt.widgets.Control.setFixedFocus(Control.java:2980) at org.eclipse.swt.widgets.Composite.setFixedFocus(Composite.java:1039) at org.eclipse.swt.widgets.Control.fixFocus(Control.java:953) at org.eclipse.swt.widgets.Control.setVisible(Control.java:3407) at org.eclipse.ui.internal.WorkbenchPage.onDeactivate(WorkbenchPage.java:2646) at org.eclipse.ui.internal.WorkbenchWindow$27.run(WorkbenchWindow.java:2972) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2967) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:849) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1696) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:734) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:710) at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:826) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:824) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1106) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) Here is the original code (org.eclipse.ui.forms_3.3.100.v20080611.jar): public void focusLost(FocusEvent e) { textLabel.redraw(); } I would change to this: public void focusLost(FocusEvent e) { if (textLabel != null) { textLabel.redraw(); } } -- Configuration Details -- Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.rcp.product) Installed Features: org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi