1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Bug 538942 - Moving backward and forward in "Create Launch

Configuration" dialog of launchbar causes NPEs

Change-Id: Ibd11b43d4348abfa74509ce715c8d5e741f1582f
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
This commit is contained in:
Umair Sair 2018-09-12 00:00:29 +05:00
parent 2ab45c194e
commit c1e3974e1b

View file

@ -83,7 +83,9 @@ public class NewLaunchConfigEditPage extends WizardPage implements IPageChanging
@Override
public void handlePageChanging(PageChangingEvent event) {
if (launchConfigType == null) {
if (launchConfigType == null || event.getTargetPage() != this) {
if (tabViewer != null)
tabViewer.setInput(null);
return;
}
LaunchConfigurationsDialog.setCurrentlyVisibleLaunchConfigurationDialog(launchConfigurationDialog);
@ -186,6 +188,11 @@ public class NewLaunchConfigEditPage extends WizardPage implements IPageChanging
public void setTabViewer(LaunchConfigurationTabGroupViewer viewer) {
super.setTabViewer(viewer);
}
@Override
public boolean isTreeSelectionEmpty() {
return false;
}
}
private class LaunchConfigurationTabGroupViewerExt extends LaunchConfigurationTabGroupViewer {