1
0
Fork 0
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:
John Cortell 2008-04-15 18:54:21 +00:00
parent 200b2b5024
commit 645efee68a

View file

@ -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();
}