Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 272480 - NPE in AbstractCLaunchDelegate
Summary: NPE in AbstractCLaunchDelegate
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 6.0   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
: 278203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-16 06:40 EDT by Nobody - feel free to take it CLA
Modified: 2010-05-28 16:26 EDT (History)
2 users (show)

See Also:
nobody: review+


Attachments
fix npe (2.48 KB, patch)
2009-05-31 08:53 EDT, Ken Ryall CLA
cdtdoug: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2009-04-16 06:40:19 EDT
There is a warning marker in my project and once in a while the launch fails because of the following NPE.

java.lang.NullPointerException
at org.eclipse.cdt.launch.AbstractCLaunchDelegate.existsErrors(AbstractCLaunchDelegate.java:751)
at org.eclipse.cdt.launch.AbstractCLaunchDelegate.finalLaunchCheck(AbstractCLaunchDelegate.java:700)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:836)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:705)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Nobody - feel free to take it CLA 2009-05-28 13:50:20 EDT
*** Bug 278203 has been marked as a duplicate of this bug. ***
Comment 2 johan CLA 2009-05-29 12:14:42 EDT
Given the impact on the issue, shouldn't we raise this to a P2? / Johan
Comment 3 Ken Ryall CLA 2009-05-31 08:53:07 EDT
Created attachment 137786 [details]
fix npe

Allow for attribute to be NULL.
Comment 4 Ken Ryall CLA 2009-05-31 08:56:13 EDT
Fixed in HEAD, now checks to see if the severity attribute is NULL. MIkhail, does this look right to you?
Comment 5 Nobody - feel free to take it CLA 2009-06-01 06:33:37 EDT
Ken, it seems to be caused by a race condition which is very difficult to catch - when I set breakpoints it works fine. 
I don't think it is worth to try to fix it "properly", so this solution is acceptable.