mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
fixed exception when no error parsers are present
This commit is contained in:
parent
d557f7864c
commit
dec04e4d8b
1 changed files with 3 additions and 1 deletions
|
@ -143,7 +143,6 @@ public class ErrorParserManager extends OutputStream {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private void initErrorParsersMap() {
|
||||
String[] parserIDs = CCorePlugin.getDefault().getAllErrorParsersIDs();
|
||||
for (int i = 0; i < parserIDs.length; i++) {
|
||||
|
@ -172,6 +171,9 @@ public class ErrorParserManager extends OutputStream {
|
|||
* Parses the input and try to generate error or warning markers
|
||||
*/
|
||||
private void processLine(String line) {
|
||||
if (fErrorParsers.size() == 0)
|
||||
return;
|
||||
|
||||
String[] parserIDs = new String[fErrorParsers.size()];
|
||||
Iterator items = fErrorParsers.keySet().iterator();
|
||||
for (int i = 0; items.hasNext(); i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue