mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 05:25:21 +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) {
|
while ((lastline = psOutput.readLine()) != null) {
|
||||||
//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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue