mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
fix NPE when list is empty and user select OK
This commit is contained in:
parent
efbcbec2d7
commit
a2efc1bcec
1 changed files with 3 additions and 1 deletions
|
@ -170,7 +170,9 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
dialog.setElements(plist.getProcessList());
|
dialog.setElements(plist.getProcessList());
|
||||||
if (dialog.open() == ElementListSelectionDialog.OK) {
|
if (dialog.open() == ElementListSelectionDialog.OK) {
|
||||||
IProcessInfo info = (IProcessInfo) dialog.getFirstResult();
|
IProcessInfo info = (IProcessInfo) dialog.getFirstResult();
|
||||||
pid[0] = info.getPid();
|
if ( info != null ) {
|
||||||
|
pid[0] = info.getPid();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue