mirror of
https://github.com/iterate-ch/cyberduck.git
synced 2026-05-26 19:10:49 +00:00
Fix #16816.
This commit is contained in:
@@ -355,6 +355,10 @@ public abstract class AbstractProtocol implements Protocol {
|
||||
|
||||
@Override
|
||||
public Set<Location.Name> getRegions() {
|
||||
final String region = this.getRegion();
|
||||
if(StringUtils.isNotBlank(region)) {
|
||||
return this.toLocations(Collections.singletonList(region));
|
||||
}
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
||||
@@ -457,6 +457,10 @@ public class Profile implements Protocol {
|
||||
public Set<Location.Name> getRegions() {
|
||||
final List<String> regions = this.list(REGIONS_KEY);
|
||||
if(regions.isEmpty()) {
|
||||
final String region = this.getRegion();
|
||||
if(StringUtils.isNotBlank(region)) {
|
||||
return parent.toLocations(Collections.singletonList(region));
|
||||
}
|
||||
return parent.getRegions();
|
||||
}
|
||||
return parent.toLocations(regions);
|
||||
|
||||
Reference in New Issue
Block a user