Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix for bug 51373: NPE when trying to instantiate a CBuildConsole with non null id

Trivial fix, no JUnit tests created.

Thanks,
Vladimir Hirsl
Rational Software - IBM Software Group
Ottawa, Ontario, Canada

Index: CCorePlugin.java
===================================================================
retrieving revision 1.42
diff -u -r1.42 CCorePlugin.java
--- CCorePlugin.java	27 Jan 2004 01:21:18 -0000	1.42
+++ CCorePlugin.java	9 Feb 2004 18:24:45 -0000
@@ -448,7 +448,7 @@
 					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");
 						}
 					}

Back to the top