Project: JDT
Bug 173031 [package explorer] AFE null argument when restoring state of WorkingSetModel
Reported: 2007-02-06 06:41:50 | Status: resolved fixed

I20070206-0010 1. Start Eclipse on a fresh workspace 2. Restart Eclipse 3. In pkg explorer select 'Top Level Elements'>'Working Sets' Is: !ENTRY org.eclipse.jdt.ui 4 2 2007-02-06 12:30:37.322 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui". !STACK 0 org.eclipse.core.runtime.AssertionFailedException: null argument: at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:84) at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:72) at org.eclipse.ui.internal.LocalWorkingSetManager.restoreState(LocalWorkingSetManager.java:52) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetModel.restoreState(WorkingSetModel.java:392) at org.eclipse.jdt.internal.ui.workingsets.WorkingSetModel.<init>(WorkingSetModel.java:252) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$10.run(PackageExplorerPart.java:1519) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.createWorkingSetModel(PackageExplorerPart.java:1516) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.rootModeChanged(PackageExplorerPart.java:1481) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.doWorkingSetChanged(PackageExplorerActionGroup.java:337) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.access$0(PackageExplorerActionGroup.java:335) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup$1.propertyChange(PackageExplorerActionGroup.java:116) at org.eclipse.jdt.internal.ui.workingsets.ViewActionGroup.setMode(ViewActionGroup.java:130) at org.eclipse.jdt.internal.ui.workingsets.ViewAction.run(ViewAction.java:34) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3490) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3104) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2257) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2221) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2096) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:456) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:451) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:101) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:146) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416) at org.eclipse.equinox.launcher.Main.run(Main.java:1124) at org.eclipse.equinox.launcher.Main.main(Main.java:1099)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/workingsets/WorkingSetModel.java