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:
parent
67d8184608
commit
8768d0f4c4
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue