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:
parent
a52e58908e
commit
696f4f29fd
1 changed files with 1 additions and 1 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue