Fix nil pool for renamed/removed ids
Would crash on connect otherwise.
This commit is contained in:
parent
414e876ace
commit
489229b1eb
|
@ -269,6 +269,11 @@ public class ConnectionService: Codable {
|
||||||
if providerProfile.preset == nil {
|
if providerProfile.preset == nil {
|
||||||
providerProfile.presetId = providerProfile.infrastructure.defaults.preset
|
providerProfile.presetId = providerProfile.infrastructure.defaults.preset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fix renamed pool, fall back to default
|
||||||
|
if providerProfile.pool == nil {
|
||||||
|
providerProfile.poolId = providerProfile.infrastructure.defaults.pool
|
||||||
|
}
|
||||||
|
|
||||||
profile = providerProfile
|
profile = providerProfile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue