Project: Eclipse_Platform_UI
Bug 110354 [WorkbenchParts] NPE dragging view from fast view bar.
Reported: 2005-09-22 14:26:53 | Status: verified fixed

I get the following NPE after doing these steps: - open the Java perspective - make a view a fastview - start dragging it, try to drop it on the bottom of the window so it takes the full width of the window. - NPE Looks related to the changes for standalone views, this part may not have a stack. We should check all other callers of this once we find the NPE. !ENTRY org.eclipse.ui 4 0 2005-09-22 14:09:47.664 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.PartSashContainer.drag(PartSashContainer.java :1034) at org.eclipse.ui.internal.dnd.DragUtil.getDropTarget(DragUtil.java:338) at org.eclipse.ui.internal.dnd.DragUtil.getDropTarget(DragUtil.java:361) at org.eclipse.ui.internal.dnd.DragUtil$2.run(DragUtil.java:217) at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152) at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:2 8) at org.eclipse.swt.widgets.Display.syncExec(Display.java:3527) at org.eclipse.ui.internal.dnd.DragUtil$1.handleEvent(DragUtil.java:211) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:884) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:908) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:893) at org.eclipse.swt.widgets.Tracker.wmMouse(Tracker.java:1030) at org.eclipse.swt.widgets.Tracker.open(Tracker.java:509) at org.eclipse.ui.internal.dnd.DragUtil.dragToTarget(DragUtil.java:292) at org.eclipse.ui.internal.dnd.DragUtil.performDrag(DragUtil.java:124) at org.eclipse.ui.internal.FastViewBar.startDrag(FastViewBar.java:551) at org.eclipse.ui.internal.FastViewBar.startDraggingFastView(FastViewBar .java:527) at org.eclipse.ui.internal.FastViewBar$1.handleEvent(FastViewBar.java:10 6) at org.eclipse.ui.presentations.PresentationUtil.handleMouseMove(Present ationUtil.java:96) at org.eclipse.ui.presentations.PresentationUtil.access$4(PresentationUt il.java:89) at org.eclipse.ui.presentations.PresentationUtil$2.handleEvent(Presentat ionUtil.java:61) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:884) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3194) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2823) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1755) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1719) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav a:368) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:10 6) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformAct ivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:377) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSashContainer.java