mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-06 08:35:26 +02:00
Fix ContainerPropertyTab to handle no images
This commit is contained in:
parent
1841c84420
commit
35b02e5aed
1 changed files with 5 additions and 2 deletions
|
@ -705,8 +705,11 @@ public class ContainerPropertyTab extends AbstractCBuildPropertyTab
|
|||
|
||||
private void initializeVolumesTable() {
|
||||
model.clearDataVolumes();
|
||||
model.setSelectedImage(
|
||||
displayedImages.get(imageCombo.getSelectionIndex()));
|
||||
int imageSelectionIndex = imageCombo.getSelectionIndex();
|
||||
if (imageSelectionIndex >= 0
|
||||
&& imageSelectionIndex < displayedImages.size()) {
|
||||
model.setSelectedImage(displayedImages.get(imageSelectionIndex));
|
||||
}
|
||||
|
||||
IOptionalBuildProperties properties = iCfg.getOptionalBuildProperties();
|
||||
initialVolumes = properties
|
||||
|
|
Loading…
Add table
Reference in a new issue