1
0
Fork 0
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:
David Inglis 2003-09-05 14:37:20 +00:00
parent d557f7864c
commit dec04e4d8b

View file

@ -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++) {