Bug 7993 - NPE when creating type hierarchy
Summary: NPE when creating type hierarchy
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 8038 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-22 09:28 EST by Martin Aeschlimann CLA
Modified: 2002-01-23 12:01 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2002-01-22 09:28:53 EST
20115
1. use wizard to create create a type A implements List
the superclass name is null

java.lang.reflect.InvocationTargetException: java.lang.NullPointerException

Stack trace:
   java/lang/Throwable.<init>()V
   java/lang/Throwable.<init>(Ljava/lang/String;)V
   java/lang/NullPointerException.<init>(Ljava/lang/String;)V
   org/eclipse/jdt/internal/compiler/util/CharOperation.lastIndexOf(C[C)I
   org/eclipse/jdt/internal/compiler/HierarchyResolver.findSuperClass
(Lorg/eclipse/jdt/internal/compiler/env/IGenericType;Lorg/eclipse/jdt/internal/c
ompiler/lookup/ReferenceBinding;)
Lorg/eclipse/jdt/internal/compiler/env/IGenericType;
   org/eclipse/jdt/internal/compiler/HierarchyResolver.reportHierarchy()V
   org/eclipse/jdt/internal/compiler/HierarchyResolver.resolve
(Lorg/eclipse/jdt/internal/compiler/env/IGenericType;)V
   org/eclipse/jdt/internal/core/hierarchy/HierarchyBuilder.buildSupertypes()V
   org/eclipse/jdt/internal/core/hierarchy/IndexBasedHierarchyBuilder.build(Z)V
   org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.compute()V
   org/eclipse/jdt/internal/core/hierarchy/TypeHierarchy.refresh
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/jdt/internal/core/CreateTypeHierarchyOperation.executeOperation()
V
   org/eclipse/jdt/internal/core/JavaModelOperation.execute()V
   org/eclipse/jdt/internal/core/JavaModelOperation.run
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/core/internal/resources/Workspace.run
(Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/IProgr
essMonitor;)V
   org/eclipse/jdt/internal/core/JavaModelManager.runOperation
(Lorg/eclipse/jdt/internal/core/JavaModelOperation;Lorg/eclipse/core/runtime/IPr
ogressMonitor;)V
   org/eclipse/jdt/internal/core/JavaElement.runOperation
(Lorg/eclipse/jdt/internal/core/JavaModelOperation;Lorg/eclipse/core/runtime/IPr
ogressMonitor;)V
   org/eclipse/jdt/internal/core/SourceType.newSupertypeHierarchy
(Lorg/eclipse/core/runtime/IProgressMonitor;)
Lorg/eclipse/jdt/core/ITypeHierarchy;
   org/eclipse/jdt/internal/ui/wizards/TypePage.constructInheritedMethods
(Lorg/eclipse/jdt/core/IType;ZZLorg/eclipse/jdt/internal/corext/codemanipulation
/IImportsStructure;Lorg/eclipse/core/runtime/IProgressMonitor;)
[Ljava/lang/String;
   org/eclipse/jdt/internal/ui/wizards/NewClassCreationWizardPage.evalMethods
(Lorg/eclipse/jdt/core/IType;Lorg/eclipse/jdt/internal/corext/codemanipulation/I
ImportsStructure;Lorg/eclipse/core/runtime/IProgressMonitor;)[Ljava/lang/String;
   org/eclipse/jdt/internal/ui/wizards/TypePage.createType
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/jdt/internal/ui/wizards/TypePage$1.run
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/ui/actions/WorkspaceModifyDelegatingOperation.execute
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/ui/actions/WorkspaceModifyOperation$1.run
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/core/internal/resources/Workspace.run
(Lorg/eclipse/core/resources/IWorkspaceRunnable;Lorg/eclipse/core/runtime/IProgr
essMonitor;)V
   org/eclipse/ui/actions/WorkspaceModifyOperation.run
(Lorg/eclipse/core/runtime/IProgressMonitor;)V
   org/eclipse/jface/operation/ModalContext.runInCurrentThread
(Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IP
rogressMonitor;)V
   org/eclipse/jface/operation/ModalContext.run
(Lorg/eclipse/jface/operation/IRunnableWithProgress;ZLorg/eclipse/core/runtime/I
ProgressMonitor;Lorg/eclipse/swt/widgets/Display;)V
   org/eclipse/jface/wizard/WizardDialog.run
(ZZLorg/eclipse/jface/operation/IRunnableWithProgress;)V
   org/eclipse/jdt/internal/ui/wizards/NewElementWizard.finishPage
(Lorg/eclipse/jface/operation/IRunnableWithProgress;)Z
   org/eclipse/jdt/internal/ui/wizards/NewClassCreationWizard.performFinish()Z
   org/eclipse/jface/wizard/WizardDialog.finishPressed()V
   org/eclipse/jface/wizard/WizardDialog.buttonPressed(I)V
   org/eclipse/jface/dialogs/Dialog$1.widgetSelected
(Lorg/eclipse/swt/events/SelectionEvent;)V
   org/eclipse/swt/widgets/TypedListener.handleEvent
(Lorg/eclipse/swt/widgets/Event;)V
   org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)
V
   org/eclipse/swt/widgets/Widget.notifyListeners
(ILorg/eclipse/swt/widgets/Event;)V
   org/eclipse/swt/widgets/Display.runDeferredEvents()Z
   org/eclipse/swt/widgets/Display.readAndDispatch()Z
   org/eclipse/jface/window/Window.runEventLoop(Lorg/eclipse/swt/widgets/Shell;)
V
   org/eclipse/jface/window/Window.open()I
   org/eclipse/jdt/internal/ui/wizards/AbstractOpenWizardAction.run()V
   org/eclipse/jdt/internal/ui/wizards/AbstractOpenWizardAction.run
(Lorg/eclipse/jface/action/IAction;)V
   org/eclipse/ui/internal/PluginAction.runWithEvent
(Lorg/eclipse/swt/widgets/Event;)V
   org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection
(Lorg/eclipse/swt/widgets/Event;)V
   org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent
(Lorg/eclipse/swt/widgets/Event;)V
   org/eclipse/jface/action/ActionContributionItem.access$0
(Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event
;)V
   org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent
(Lorg/eclipse/swt/widgets/Event;)V
   org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;)
V
   org/eclipse/swt/widgets/Widget.notifyListeners
(ILorg/eclipse/swt/widgets/Event;)V
   org/eclipse/swt/widgets/Display.runDeferredEvents()Z
   org/eclipse/swt/widgets/Display.readAndDispatch()Z
   org/eclipse/ui/internal/Workbench.runEventLoop()V
   org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object;
   org/eclipse/core/internal/boot/InternalBootLoader.run
(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;)
Ljava/lang/Object;
   org/eclipse/core/boot/BootLoader.run
(Ljava/lang/String;Ljava/net/URL;Ljava/lang/String;[Ljava/lang/String;)
Ljava/lang/Object;
   SlimLauncher.main([Ljava/lang/String;)V
Comment 1 Jerome Lanneluc CLA 2002-01-22 09:53:29 EST
Null check added.
Comment 2 Philipe Mulet CLA 2002-01-23 12:01:02 EST
*** Bug 8038 has been marked as a duplicate of this bug. ***