mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
Trim the line before parsing.
This commit is contained in:
parent
ffbaedf13d
commit
251fa2d9e3
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ public class ProcessList implements IProcessList {
|
|||
while ((lastline = psOutput.readLine()) != null) {
|
||||
//The format of the output should be
|
||||
//PID space name
|
||||
|
||||
|
||||
lastline = lastline.trim();
|
||||
int index = lastline.indexOf(' ');
|
||||
if (index != -1) {
|
||||
String pidString = lastline.substring(0, index).trim();
|
||||
|
|
Loading…
Add table
Reference in a new issue