diff --git a/core/org.eclipse.cdt.core/ChangeLog b/core/org.eclipse.cdt.core/ChangeLog index bcaf82c244d..5dc532031d8 100644 --- a/core/org.eclipse.cdt.core/ChangeLog +++ b/core/org.eclipse.cdt.core/ChangeLog @@ -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 diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java index 9e6a1cfc6f7..f1da22ca867 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java @@ -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"); } }