1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00

CAbstractMainTab: fixed possible NPE if method called direcly

updateBuildConfigCombo originally accepted null as arument, restored
this behavior (it is not called with null from cdt code, but may be
called from overriding classes)

Change-Id: I7d0f271b2bd414d380a1804b838ce38fbdc7c0af
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
Alena Laskavaia 2015-01-20 16:51:17 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 8855a845a3
commit 8e7e750522

View file

@ -269,7 +269,7 @@ public abstract class CAbstractMainTab extends CLaunchConfigurationTab {
if (isAutoConfigSupported()) {
fBuildConfigCombo.add(LaunchMessages.CMainTab_Use_Automatic);
fBuildConfigCombo.setData(String.valueOf(offset), AUTO_CONFIG);
if (selectedConfigID.equals(AUTO_CONFIG)) {
if (AUTO_CONFIG.equals(selectedConfigID)) {
fBuildConfigCombo.select(offset);
}
}