1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-16 21:45:22 +02:00

Trim the line before parsing.

This commit is contained in:
Alain Magloire 2002-10-15 18:13:20 +00:00
parent ffbaedf13d
commit 251fa2d9e3

View file

@ -44,6 +44,7 @@ public class ProcessList implements IProcessList {
//The format of the output should be //The format of the output should be
//PID space name //PID space name
lastline = lastline.trim();
int index = lastline.indexOf(' '); int index = lastline.indexOf(' ');
if (index != -1) { if (index != -1) {
String pidString = lastline.substring(0, index).trim(); String pidString = lastline.substring(0, index).trim();