1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

prevent invalid error parser extensions from being included in list

This commit is contained in:
David Inglis 2004-08-18 14:27:14 +00:00
parent a52e58908e
commit 696f4f29fd

View file

@ -834,7 +834,7 @@ public class CCorePlugin extends Plugin {
List list = new ArrayList(extensions.length);
for (int i = 0; i < extensions.length; i++) {
String parserID = extensions[i].getUniqueIdentifier();
if ((id == null && parserID == null) || (id != null && parserID.equals(id))) {
if ((id == null && parserID != null) || (id != null && id.equals(parserID))) {
IConfigurationElement[] configElements = extensions[i]. getConfigurationElements();
for (int j = 0; j < configElements.length; j++) {
IErrorParser parser = (IErrorParser)configElements[j].createExecutableExtension("class"); //$NON-NLS-1$