mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
1. Fix for [Bug 186665] CDT 4 update old version project failed.
2. fix NPE in MBSMacroSupplier
This commit is contained in:
parent
3add45dbdf
commit
049b386dc5
2 changed files with 4 additions and 2 deletions
|
@ -2910,6 +2910,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IManagedBuildInfo getBuildInfoLegacy(IProject project){
|
public static IManagedBuildInfo getBuildInfoLegacy(IProject project){
|
||||||
|
synchronized(project){
|
||||||
IManagedBuildInfo info = null;
|
IManagedBuildInfo info = null;
|
||||||
try {
|
try {
|
||||||
info = getLoaddedBuildInfo(project);
|
info = getLoaddedBuildInfo(project);
|
||||||
|
@ -2927,6 +2928,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
||||||
}
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Finds, but does not create, the managed build information for the
|
* Finds, but does not create, the managed build information for the
|
||||||
|
|
|
@ -425,7 +425,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
ITool targetTool = cfg.calculateTargetTool();
|
ITool targetTool = cfg.calculateTargetTool();
|
||||||
if(targetTool != null){
|
if(targetTool != null){
|
||||||
IOutputType pot = targetTool.getPrimaryOutputType();
|
IOutputType pot = targetTool.getPrimaryOutputType();
|
||||||
String prefix = pot.getOutputPrefix();
|
String prefix = pot != null ? pot.getOutputPrefix() : ""; //$NON-NLS-1$
|
||||||
|
|
||||||
|
|
||||||
// Resolve any macros in the outputPrefix
|
// Resolve any macros in the outputPrefix
|
||||||
|
@ -486,7 +486,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
||||||
ITool targetTool = cfg.calculateTargetTool();
|
ITool targetTool = cfg.calculateTargetTool();
|
||||||
if(targetTool != null){
|
if(targetTool != null){
|
||||||
IOutputType pot = targetTool.getPrimaryOutputType();
|
IOutputType pot = targetTool.getPrimaryOutputType();
|
||||||
String prefix = pot.getOutputPrefix();
|
String prefix = pot != null ? pot.getOutputPrefix() : ""; //$NON-NLS-1$
|
||||||
|
|
||||||
// Resolve any macros in the outputPrefix
|
// Resolve any macros in the outputPrefix
|
||||||
// Note that we cannot use file macros because if we do a clean
|
// Note that we cannot use file macros because if we do a clean
|
||||||
|
|
Loading…
Add table
Reference in a new issue