mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 00:36:16 +02:00
Avoid NPE if the client debugger tab factory fails to create the control.
This commit is contained in:
parent
200b2b5024
commit
645efee68a
1 changed files with 4 additions and 1 deletions
|
@ -174,7 +174,10 @@ public abstract class AbstractCDebuggerTab extends CLaunchConfigurationTab {
|
|||
// Ask the dynamic UI to create its Control
|
||||
getDynamicTab().setLaunchConfigurationDialog(getLaunchConfigurationDialog());
|
||||
getDynamicTab().createControl(getDynamicTabHolder());
|
||||
getDynamicTab().getControl().setVisible(true);
|
||||
Control control = getDynamicTab().getControl();
|
||||
if (control != null) {
|
||||
control.setVisible(true);
|
||||
}
|
||||
getDynamicTabHolder().layout(true);
|
||||
contentsChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue