1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

Patch for Vladimir Hirsl

Fix for PR# 51373: NPE when trying to instantiate a CBuildConsole with non null id
This commit is contained in:
John Camelon 2004-02-10 20:42:04 +00:00
parent 7fb590779b
commit 901cb862ed
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
2004-02-10 Vladimir Hirsl
Fix for PR# 51373: NPE when trying to instantiate a CBuildConsole with non null id
2004-02-06 Hoda Amer 2004-02-06 Hoda Amer
Fix for Bug#51208: NullPointerException in CModelBuilder Fix for Bug#51208: NullPointerException in CModelBuilder

View file

@ -448,7 +448,7 @@ public class CCorePlugin extends Plugin {
IConfigurationElement[] configElements = extensions[i].getConfigurationElements(); IConfigurationElement[] configElements = extensions[i].getConfigurationElements();
for (int j = 0; j < configElements.length; j++) { for (int j = 0; j < configElements.length; j++) {
String builderID = configElements[j].getAttribute("builderID"); String builderID = configElements[j].getAttribute("builderID");
if ((id == null && builderID == null) || (id != null && builderID.equals(id))) { if ((id == null && builderID == null) || (id != null && id.equals(builderID))) {
return (IConsole) configElements[j].createExecutableExtension("class"); return (IConsole) configElements[j].createExecutableExtension("class");
} }
} }