1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

check the validity of the column i.e. has to be a number.

This commit is contained in:
Alain Magloire 2002-11-14 03:19:05 +00:00
parent 67d8184608
commit 8768d0f4c4

View file

@ -64,8 +64,9 @@ public class GCCErrorParser implements IErrorParser {
/* Then check for the column */
int thirdColon= line.indexOf(':', secondColon + 1);
if (thirdColon != -1) {
String columnNumber = line.substring(secondColon + 1, thirdColon);
try {
col = Integer.parseInt(lineNumber);
col = Integer.parseInt(columnNumber);
} catch (NumberFormatException e) {
}
}