1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00

Bug 326671 - Fix potential NPE when building old tests.

This commit is contained in:
James Blackburn 2011-02-15 12:14:59 +00:00
parent 9c85e9f651
commit 55ba7fa2f4

View file

@ -1296,7 +1296,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
// If this configuration produces a static archive, building the archive doesn't depend on the output // If this configuration produces a static archive, building the archive doesn't depend on the output
// from any of the referenced configurations // from any of the referenced configurations
IConfiguration[] refConfigs = new IConfiguration[0]; IConfiguration[] refConfigs = new IConfiguration[0];
if (!ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_STATICLIB.equals(config.getBuildArtefactType().getId())) if (config.getBuildArtefactType() == null || !ManagedBuildManager.BUILD_ARTEFACT_TYPE_PROPERTY_STATICLIB.equals(config.getBuildArtefactType().getId()))
refConfigs = ManagedBuildManager.getReferencedConfigurations(config); refConfigs = ManagedBuildManager.getReferencedConfigurations(config);
/* try { /* try {