1
0
Fork 0
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:
Marc Khouzam 2012-03-20 16:21:14 -04:00
parent 00ef45a136
commit 4fc35b2185

View file

@ -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);