1
0
Fork 0
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:
David Inglis 2003-04-30 17:33:41 +00:00
parent efbcbec2d7
commit a2efc1bcec

View file

@ -170,9 +170,11 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
dialog.setElements(plist.getProcessList());
if (dialog.open() == ElementListSelectionDialog.OK) {
IProcessInfo info = (IProcessInfo) dialog.getFirstResult();
if ( info != null ) {
pid[0] = info.getPid();
}
}
}
});
return pid[0];
}