Commit 5fc3c7f
Fix nullability mismatch in deprecated newConfig extension (#122)
getCollectionConfigs() was tightened to take a non-null
BaseReplicatorConfiguration (CBL-7303), but the re-added 3.x
deprecated ReplicatorConfiguration?.newConfig extension still
passes its nullable receiver, breaking compilation.
Guard the call with this?.let { getCollectionConfigs(it) }. This
matches the 3.3 behavior: the ReplicatorConfiguration constructor
treats a null collection map as empty, so a null receiver yields
an empty configuration exactly as before.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a86deb8 commit 5fc3c7f
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments