mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +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){
|
||||
synchronized(project){
|
||||
IManagedBuildInfo info = null;
|
||||
try {
|
||||
info = getLoaddedBuildInfo(project);
|
||||
|
@ -2927,6 +2928,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
|||
}
|
||||
|
||||
return info;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Finds, but does not create, the managed build information for the
|
||||
|
|
|
@ -425,7 +425,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
|||
ITool targetTool = cfg.calculateTargetTool();
|
||||
if(targetTool != null){
|
||||
IOutputType pot = targetTool.getPrimaryOutputType();
|
||||
String prefix = pot.getOutputPrefix();
|
||||
String prefix = pot != null ? pot.getOutputPrefix() : ""; //$NON-NLS-1$
|
||||
|
||||
|
||||
// Resolve any macros in the outputPrefix
|
||||
|
@ -486,7 +486,7 @@ public class MbsMacroSupplier extends BuildCdtVariablesSupplierBase {
|
|||
ITool targetTool = cfg.calculateTargetTool();
|
||||
if(targetTool != null){
|
||||
IOutputType pot = targetTool.getPrimaryOutputType();
|
||||
String prefix = pot.getOutputPrefix();
|
||||
String prefix = pot != null ? pot.getOutputPrefix() : ""; //$NON-NLS-1$
|
||||
|
||||
// Resolve any macros in the outputPrefix
|
||||
// Note that we cannot use file macros because if we do a clean
|
||||
|
|
Loading…
Add table
Reference in a new issue