mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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:
parent
7fb590779b
commit
901cb862ed
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
Fix for Bug#51208: NullPointerException in CModelBuilder
|
||||
|
||||
|
|
|
@ -448,7 +448,7 @@ public class CCorePlugin extends Plugin {
|
|||
IConfigurationElement[] configElements = extensions[i].getConfigurationElements();
|
||||
for (int j = 0; j < configElements.length; j++) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue