Bug 175722 - NPE in ToolSettingsPrefStore
Summary: NPE in ToolSettingsPrefStore
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.0   Edit
Assignee: Oleg Krasilnikov CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-02-27 12:48 EST by Wieant CLA
Modified: 2008-06-19 23:54 EDT (History)
0 users

See Also:


Attachments
Patch proposal (1.10 KB, patch)
2007-02-27 12:49 EST, Wieant CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wieant CLA 2007-02-27 12:48:41 EST
The org.eclipse.cdt.managedbuilder.ui.newui.ToolSettingsPrefStore.getOption()
method contains the following test:
  if ( option.getName().equals(name) ...
However options may not have to specify a name, for instance invisible options
will have no name attached. In that case a NPE is triggered.
Comment 1 Wieant CLA 2007-02-27 12:49:59 EST
Created attachment 59894 [details]
Patch proposal
Comment 2 Mikhail Sennikovsky CLA 2007-02-27 12:51:59 EST
Oleg, could you take a look?
Comment 3 Oleg Krasilnikov CLA 2007-02-28 05:21:15 EST
Patch applied. Thanks. 
Comment 4 Oleg Krasilnikov CLA 2007-02-28 05:22:06 EST
.
Comment 5 Doug Schaefer CLA 2007-05-13 20:34:59 EDT
Setting to milestone 4.0 so we can generate a report of all bugs fixed in 4.0.