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

Fix for NPE in tool-chain modification functionality

This commit is contained in:
Mikhail Sennikovsky 2007-04-19 13:48:30 +00:00
parent b9d5c2f110
commit 2b673fe759

View file

@ -988,6 +988,8 @@ public class ResourceConfiguration extends ResourceInfo implements IFileInfo {
for(int i = 0; i < tools.length; i++){ for(int i = 0; i < tools.length; i++){
ITool[] pair = new ITool[2]; ITool[] pair = new ITool[2];
pair[0] = ManagedBuildManager.getRealTool(tools[i]); pair[0] = ManagedBuildManager.getRealTool(tools[i]);
if(pair[0] == null)
pair[0] = tools[i];
pair[1] = tools[i]; pair[1] = tools[i];
pairs[i] = pair; pairs[i] = pair;
} }