Bug 28442 NPE in browsing perspective
20021216 i selected the rt.jar java.lang.NullPointerException at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.getHierarchicalText(PackagesViewLabelProvider.java:145) at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.getText(PackagesViewLabelProvider.java:125) at org.eclipse.jdt.internal.ui.browsing.PackagesViewLabelProvider.getText(PackagesViewLabelProvider.java:114) at org.eclipse.jface.viewers.DecoratingLabelProvider.getText(DecoratingLabelProvider.java:100) at org.eclipse.jdt.internal.ui.browsing.PackagesView$3.getText(PackagesView.java:533) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:96) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:363) at org.eclipse.jdt.internal.ui.browsing.PackagesViewTreeViewer.doUpdateItem(PackagesViewTreeViewer.java:127) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1132) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:267) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:252) at org.eclipse.jface.viewers.AbstractTreeViewer$2.run(AbstractTreeViewer.java:655) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:684) at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:647) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:232) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:871) at org.eclipse.jdt.internal.ui.browsing.PackageViewerWrapper.setViewerInput(PackageViewerWrapper.java:306) at org.eclipse.jdt.internal.ui.browsing.PackagesView.setViewerWrapperInput(PackagesView.java:321) at org.eclipse.jdt.internal.ui.browsing.PackagesView.setInput(PackagesView.java:316) at org.eclipse.jdt.internal.ui.browsing.PackagesView.adjustInputAndSetSelection(PackagesView.java:590) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.selectionChanged(JavaBrowsingPart.java:657) at org.eclipse.ui.internal.AbstractSelectionService$4.run(AbstractSelectionService.java:162) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:160) at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:60) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:330) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:554) at org.eclipse.jface.viewers.StructuredViewer$2.widgetSelected(StructuredViewer.java:572) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:192) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:187) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:327) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(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:1386) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewLabelProvider.java
/*******************************************************************************
 * Copyright (c) 2000, 2002 International Business Machines Corp. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 *
 * Contributors:
 *     IBM Corporation - initial implementation
 ******************************************************************************/
package org.eclipse.jdt.internal.ui.browsing;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.util.Assert;
import org.eclipse.jface.viewers.ILabelDecorator;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.JavaPluginImages;
import org.eclipse.jdt.internal.ui.viewsupport.AppearanceAwareLabelProvider;
import org.eclipse.jdt.internal.ui.viewsupport.ImageDescriptorRegistry;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels;
import org.eclipse.jdt.internal.ui.viewsupport.TreeHierarchyLayoutProblemsDecorator;
/**
 * XXX: not yet reviewed - part of experimental logical packages view
 */
class PackagesViewLabelProvider extends AppearanceAwareLabelProvider {