mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-14 19:55:45 +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,7 +905,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
if (description != null)
|
if (description != null)
|
||||||
element.setAttribute(IConfiguration.DESCRIPTION, description);
|
element.setAttribute(IConfiguration.DESCRIPTION, description);
|
||||||
|
|
||||||
if(buildProperties != null)
|
if(buildProperties != null){
|
||||||
element.setAttribute(BUILD_PROPERTIES, buildProperties.toString());
|
element.setAttribute(BUILD_PROPERTIES, buildProperties.toString());
|
||||||
|
|
||||||
IBuildProperty prop = buildProperties.getProperty(ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_ID);
|
IBuildProperty prop = buildProperties.getProperty(ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_ID);
|
||||||
|
@ -913,6 +913,7 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
|
||||||
IBuildPropertyValue val = prop.getValue();
|
IBuildPropertyValue val = prop.getValue();
|
||||||
element.setAttribute(BUILD_ARTEFACT_TYPE, val.getId());
|
element.setAttribute(BUILD_ARTEFACT_TYPE, val.getId());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (parent != null)
|
if (parent != null)
|
||||||
element.setAttribute(IConfiguration.PARENT, parent.getId());
|
element.setAttribute(IConfiguration.PARENT, parent.getId());
|
||||||
|
|
Loading…
Add table
Reference in a new issue