Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-03-20 16:21:14 -0400
committerMarc Khouzam2012-03-20 16:21:14 -0400
commit4fc35b218588ff007292fd36a03d96b32d21ea0b (patch)
treecde634344d3ee4d2f01d5d41daf5270fea520331 /dsf-gdb
parent00ef45a136f823e4a66afa5245c5fa8129589020 (diff)
downloadorg.eclipse.cdt-4fc35b218588ff007292fd36a03d96b32d21ea0b.tar.gz
org.eclipse.cdt-4fc35b218588ff007292fd36a03d96b32d21ea0b.tar.xz
org.eclipse.cdt-4fc35b218588ff007292fd36a03d96b32d21ea0b.zip
Bug 374823: NPE when trying to list remote processes with GDB 7.4
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompter.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompter.java
index 764b2409a0..8df673aa10 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompter.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompter.java
@@ -97,6 +97,12 @@ public class ProcessPrompter implements IStatusHandler {
// we will get confused when using path.lastSegment(), so,
// let's only keep the name to be sure
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$
IPath path = new Path(name);

Back to the top