Bug 21170 - NPE in RuntimeClasspathEntry if internal source archive removed
Summary: NPE in RuntimeClasspathEntry if internal source archive removed
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P2 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 21680 21725 22013 22065 22489 24069 38660 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-01 12:57 EDT by Darin Swanson CLA
Modified: 2003-06-09 15:07 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2002-07-01 12:57:23 EDT
Test Case
Create a launch configuration
Add an internal jar to the source path
Apply and close
Delete the internal jar
Attempt to open the launch configuration dialog

java.lang.NullPointerException
	at org.eclipse.jdt.internal.launching.RuntimeClasspathEntry.<init>
(RuntimeClasspathEntry.java:168)
	at org.eclipse.jdt.launching.JavaRuntime.newRuntimeClasspathEntry
(JavaRuntime.java:505)
	at 
org.eclipse.jdt.launching.StandardClasspathProvider.recoverRuntimePath
(StandardClasspathProvider.java:96)
	at 
org.eclipse.jdt.launching.StandardSourcePathProvider.computeUnresolvedClasspath
(StandardSourcePathProvider.java:41)
	at 
org.eclipse.jdt.launching.JavaRuntime.computeUnresolvedSourceLookupPath
(JavaRuntime.java:573)
	at 
org.eclipse.jdt.internal.debug.ui.launcher.SourceLookupBlock.initializeFrom
(SourceLookupBlock.java:236)
	at 
org.eclipse.jdt.debug.ui.launchConfigurations.JavaSourceLookupTab.initializeFrom
(JavaSourceLookupTab.java:72)
	at 
org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom
(AbstractLaunchConfigurationTabGroup.java:78)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.set
LaunchConfiguration(LaunchConfigurationDialog.java:1453)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.sel
ectionChanged(LaunchConfigurationDialog.java:1382)
	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged
(Viewer.java:147)
	at org.eclipse.jface.viewers.StructuredViewer.updateSelection
(StructuredViewer.java:1155)
	at org.eclipse.jface.viewers.StructuredViewer.setSelection
(StructuredViewer.java:904)
	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:342)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.doI
nitialTreeSelection(LaunchConfigurationDialog.java:537)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.cre
ateContents(LaunchConfigurationDialog.java:456)
	at org.eclipse.jface.window.Window.create(Window.java:277)
	at org.eclipse.jface.window.Window.open(Window.java:526)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.doL
astLaunchedConfig(LaunchConfigurationDialog.java:617)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.ope
n(LaunchConfigurationDialog.java:578)
	at 
org.eclipse.debug.internal.ui.actions.OpenLaunchConfigurationsAction.run
(OpenLaunchConfigurationsAction.java:132)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1529)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1291)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
Comment 1 Darin Swanson CLA 2002-07-02 12:54:59 EDT
Fixed in RuntimeClasspathEntry constructor.  Aborts the construction of the 
entry if the resource associated with an internal archive does not exist in the 
workspace.

Please verify.
Comment 2 Darin Swanson CLA 2002-07-18 11:30:29 EDT
*** Bug 21680 has been marked as a duplicate of this bug. ***
Comment 3 Darin Wright CLA 2002-07-23 10:19:17 EDT
*** Bug 21725 has been marked as a duplicate of this bug. ***
Comment 4 Darin Wright CLA 2002-07-23 13:39:42 EDT
Placed update into 2.0.1 branch.
Comment 5 Jared Burns CLA 2002-07-23 15:47:20 EDT
Verified.
Comment 6 Darin Wright CLA 2002-07-30 14:12:36 EDT
*** Bug 22013 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2002-07-31 09:06:05 EDT
*** Bug 22065 has been marked as a duplicate of this bug. ***
Comment 8 Darin Swanson CLA 2002-08-16 10:04:47 EDT
*** Bug 22489 has been marked as a duplicate of this bug. ***
Comment 9 Darin Wright CLA 2002-09-26 09:57:55 EDT
*** Bug 24069 has been marked as a duplicate of this bug. ***
Comment 10 Darin Wright CLA 2003-06-09 15:07:51 EDT
*** Bug 38660 has been marked as a duplicate of this bug. ***