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:
parent
655d90ba80
commit
b02cb0cd37
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue