mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 11:45:38 +02:00
Fix for the NPE with the old stile tool-chains
This commit is contained in:
parent
a50038b47f
commit
2b14d7a898
1 changed files with 6 additions and 5 deletions
|
@ -905,13 +905,14 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
|||
if (description != null)
|
||||
element.setAttribute(IConfiguration.DESCRIPTION, description);
|
||||
|
||||
if(buildProperties != null)
|
||||
if(buildProperties != null){
|
||||
element.setAttribute(BUILD_PROPERTIES, buildProperties.toString());
|
||||
|
||||
IBuildProperty prop = buildProperties.getProperty(ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_ID);
|
||||
if(prop != null){
|
||||
IBuildPropertyValue val = prop.getValue();
|
||||
element.setAttribute(BUILD_ARTEFACT_TYPE, val.getId());
|
||||
IBuildProperty prop = buildProperties.getProperty(ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_ID);
|
||||
if(prop != null){
|
||||
IBuildPropertyValue val = prop.getValue();
|
||||
element.setAttribute(BUILD_ARTEFACT_TYPE, val.getId());
|
||||
}
|
||||
}
|
||||
|
||||
if (parent != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue