Project: SWT
Bug 46707 NPE when closing eclipse.
Reported: 2003-11-14 16:56:25 | Status: resolved fixed

java.lang.NullPointerException at org.eclipse.swt.dnd.Clipboard.dispose(Clipboard.java:146) at org.eclipse.swt.custom.StyledText.handleDispose(StyledText.java:5180) at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5025) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852) at org.eclipse.swt.widgets.Widget.releaseWidget(Widget.java:759) at org.eclipse.swt.widgets.Control.releaseWidget(Control.java:1434) at org.eclipse.swt.widgets.Scrollable.releaseWidget(Scrollable.java:188) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:372) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:118) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:118) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Widget.releaseResources(Widget.java:724) at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:366) at org.eclipse.swt.widgets.Composite.releaseWidget(Composite.java:371) at org.eclipse.swt.widgets.Canvas.releaseWidget(Canvas.java:118) at org.eclipse.swt.widgets.Decorations.releaseWidget(Decorations.java:665) at org.eclipse.swt.widgets.Shell.releaseWidget(Shell.java:753) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:375) at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:365) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:485) at org.eclipse.swt.widgets.Display.release(Display.java:1927) at org.eclipse.swt.graphics.Device.dispose(Device.java:212) at org.eclipse.ui.internal.Workbench.run(Workbench.java:2025) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:295) at org.eclipse.core.launcher.Main.run(Main.java:751) at org.eclipse.core.launcher.Main.main(Main.java:587)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Clipboard.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Clipboard.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Clipboard.java bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/Clipboard.java