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:
parent
8855a845a3
commit
8e7e750522
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue