1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

check for debugconfig for validity

This commit is contained in:
David Inglis 2002-09-17 16:13:22 +00:00
parent 655d90ba80
commit b02cb0cd37

View file

@ -273,7 +273,7 @@ public class CDebuggerTab extends CLaunchConfigurationTab {
setErrorMessage(null);
setMessage(null);
if (fDCombo.getSelectionIndex() == -1) {
if (fDCombo.getSelectionIndex() == -1 || getDebugConfig() == null) {
setErrorMessage("No debugger avalible");
return false;
}
@ -318,10 +318,10 @@ public class CDebuggerTab extends CLaunchConfigurationTab {
else {
setDynamicTab(CDebugUIPlugin.getDefault().getDebuggerPage(debugConfig.getID()));
}
setDebugConfig(debugConfig);
if (getDynamicTab() == null) {
return;
}
setDebugConfig(debugConfig);
// Ask the dynamic UI to create its Control
getDynamicTab().setLaunchConfigurationDialog(getLaunchConfigurationDialog());
getDynamicTab().createControl(getDynamicTabHolder());