Project: Eclipse_Platform_UI
Bug 9030 NPE opening perspective on folder
Reported: 2002-02-04 10:06:25 | Status: resolved fixed

Build 2002-01-29 - Select a folder in the navigator view (such as org.eclipse.ui/icons) - Right click, Open Perspective -> Java - An error occurs creating the view. The following is in the log: 2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in: org.eclipse.ui. java.lang.NullPointerException at org.eclipse.ui.internal.DecoratorManager.getDecoratorsFor(DecoratorManager.java: 170) at org.eclipse.ui.internal.DecoratorManager.decorateText(DecoratorManager.java:94) at org.eclipse.jface.viewers.DecoratingLabelProvider.getText(DecoratingLabelProvide r.java:100) at org.eclipse.ui.views.internal.framelist.TreeFrame.<init>(TreeFrame.java:20) at org.eclipse.ui.views.internal.framelist.TreeViewerFrameSource.createFrame(TreeVi ewerFrameSource.java:30) at org.eclipse.jdt.internal.ui.packageview.PackagesFrameSource.createFrame(Packages FrameSource.java:20) at org.eclipse.ui.views.internal.framelist.TreeViewerFrameSource.getCurrentFrame(Tr eeViewerFrameSource.java:47) at org.eclipse.ui.views.internal.framelist.TreeViewerFrameSource.getFrame(TreeViewe rFrameSource.java:60) at org.eclipse.ui.views.internal.framelist.FrameList.<init>(FrameList.java:40) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.initFrameList(Packag eExplorerPart.java:1066) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.createPartControl(Pa ckageExplorerPart.java:350) at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:60) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Com piled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:58) at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:100) at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:173) at org.eclipse.ui.internal.PartTabFolder.createPartTab(PartTabFolder.java:237) at org.eclipse.ui.internal.PartTabFolder.createControl(PartTabFolder.java:209) at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:1 72) at org.eclipse.ui.internal.PerspectivePresentation.activate(PerspectivePresentation .java:80) at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:511) at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:1030) at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:893) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:881) at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(WorkbenchWindow.java:278) at org.eclipse.ui.internal.WorkbenchWindow$4.run(WorkbenchWindow.java:624) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.ui.internal.WorkbenchWindow.openPage(WorkbenchWindow.java:621) at org.eclipse.ui.internal.Workbench.openNewPage(Workbench.java:628) at org.eclipse.ui.internal.Workbench.openPage(Workbench.java:681) at org.eclipse.ui.actions.OpenPerspectiveMenu.openPage(OpenPerspectiveMenu.java:132 ) at org.eclipse.ui.actions.OpenPerspectiveMenu.run(OpenPerspectiveMenu.java:115) at org.eclipse.ui.actions.PerspectiveMenu$2.widgetSelected(PerspectiveMenu.java:83) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:85) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:835) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:89 5) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:321) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

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