Project: Eclipse_Platform_UI
Bug 262935 [WorkingSets] NPE in AggregateWorkingSet#propertyChange(..) when moving breakpoint
Reported: 2009-01-29 12:48:56 | Status: verified fixed

I20090128-0800 Found a lot of these in the log after I moved a breakpoint from the "Others" working set to another working set (via DND in the Breakpoints view, which I have grouped by Breakpoint Working Sets). Assigning to Platform/UI first, since I recently saw changes in the area of aggregate working sets, and I didn't get these exceptions before. !ENTRY org.eclipse.ui.workbench 4 2 2009-01-29 15:06:26.699 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 java.lang.NullPointerException at org.eclipse.ui.internal.AggregateWorkingSet.propertyChange(AggregateWorkingSet.java:187) at org.eclipse.ui.internal.AbstractWorkingSetManager$6.run(AbstractWorkingSetManager.java:396) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.AbstractWorkingSetManager$5.run(AbstractWorkingSetManager.java:403) at org.eclipse.ui.internal.AbstractWorkingSetManager.firePropertyChange(AbstractWorkingSetManager.java:409) at org.eclipse.ui.internal.AbstractWorkingSetManager.workingSetChanged(AbstractWorkingSetManager.java:432) at org.eclipse.ui.internal.WorkingSetManager.workingSetChanged(WorkingSetManager.java:161) at org.eclipse.ui.internal.AbstractWorkingSet.fireWorkingSetChanged(AbstractWorkingSet.java:119) at org.eclipse.ui.internal.WorkingSet.setElements(WorkingSet.java:234) at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointSetOrganizer.addBreakpointsToSet(BreakpointSetOrganizer.java:230) at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointSetOrganizer.addBreakpoints(BreakpointSetOrganizer.java:432) at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointOrganizerExtension.addBreakpoints(BreakpointOrganizerExtension.java:176) at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsViewer.performDrop(BreakpointsViewer.java:326) at org.eclipse.debug.internal.ui.views.breakpoints.BreakpointsDropAdapter.performDrop(BreakpointsDropAdapter.java:39) at org.eclipse.jface.viewers.ViewerDropAdapter.drop(ViewerDropAdapter.java:239) at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770) at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:455) at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:257) at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119) at org.eclipse.swt.internal.ole.win32.COM.$$YJP$$DoDragDrop(Native Method) at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(COM.java) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:362) at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:288) at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:171) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3875) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3470) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) at org.eclipse.equinox.launcher.Main.run(Main.java:1270) at org.eclipse.equinox.launcher.Main.main(Main.java:1246)

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