[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Cdt-launch-inbox] [Bug 231149] New: One more NPE in AbstractCLaunchDelegate
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=231149
Product/Component: CDT / cdt-launch
Summary: One more NPE in AbstractCLaunchDelegate
Product: CDT
Version: 4.0.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P3
Component: cdt-launch
AssignedTo: cdt-launch-inbox@xxxxxxxxxxx
ReportedBy: achapiro@xxxxxxx
Created an attachment (id=99311)
--> (https://bugs.eclipse.org/bugs/attachment.cgi?id=99311)
This is a patch
Build ID: 3.4M6
Steps To Reproduce:
1.Create two projects.
2.Launch debug session from the first one using pull-down menu option Debug
As...
3.Then open Launch Configuration dialog
4. Duolicate configuration created for the first project and update it for the
second project.
5. Page to debugger tab back and forth or launch it.
You'll get NPE with such trace log:
java.lang.NullPointerException
at
org.eclipse.cdt.launch.AbstractCLaunchDelegate.setBuildConfiguration(AbstractCLaunchDelegate.java:572)
at
org.eclipse.cdt.launch.AbstractCLaunchDelegate.buildForLaunch(AbstractCLaunchDelegate.java:548)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:732)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
More information:
Actually the cause of this bug is clear: when user duplicates configuration,
IDE also copies ICDTLaunchConfigurationConstants.ATTR_PROJECT_BUILD_CONFIG_ID
attribute. However, ICProjectDescription object is nothing to do with launch
configuration and of course it doesn't hold proper object
ICConfigurationDescription.
The fixing is obvious: because we do not control duplication process, we just
should check if project description finds configuration description.
I attach this micro-patch to this report.
--
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.