1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +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,7 +170,9 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
dialog.setElements(plist.getProcessList());
if (dialog.open() == ElementListSelectionDialog.OK) {
IProcessInfo info = (IProcessInfo) dialog.getFirstResult();
pid[0] = info.getPid();
if ( info != null ) {
pid[0] = info.getPid();
}
}
}
});