mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 374823: NPE when trying to list remote processes with GDB 7.4
This commit is contained in:
parent
00ef45a136
commit
4fc35b2185
1 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,12 @@ public class ProcessPrompter implements IStatusHandler {
|
||||||
// we will get confused when using path.lastSegment(), so,
|
// we will get confused when using path.lastSegment(), so,
|
||||||
// let's only keep the name to be sure
|
// let's only keep the name to be sure
|
||||||
String name = info.getName();
|
String name = info.getName();
|
||||||
|
if (name == null || name.isEmpty()) {
|
||||||
|
// Skip elements that have no name
|
||||||
|
// Bug 374823
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
name = name.split("\\s", 2)[0]; //$NON-NLS-1$
|
name = name.split("\\s", 2)[0]; //$NON-NLS-1$
|
||||||
|
|
||||||
IPath path = new Path(name);
|
IPath path = new Path(name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue