Skip to content

Conversation

@hasancanguler
Copy link
Contributor

If no settings are found for the installer, the Get method fails. To fix this issue, it has been replaced with GetOrDefault, and a null check has been added

@bording
Copy link
Member

bording commented Sep 26, 2025

Hi @hasancanguler

Can you explain the scenario that would ever cause the Get to fail? A default InstallerSettings instance is created by the persister here, so there should never be a case where there is no InstallerSettings instance for the Get to return.

@hasancanguler
Copy link
Contributor Author

hi @bording, thank you for your comment. If you use more than one form of transport within the same library, one of them will be optional. When Mongo is set as optional, we pass empty settings, which leads to the error

@bording bording changed the title Replace settings.Get Handle null InstallerSettings in installers Sep 30, 2025
@bording bording merged commit 61a3699 into Particular:master Sep 30, 2025
4 checks passed
@bording
Copy link
Member

bording commented Sep 30, 2025

@hasancanguler Thanks for the contribution. I've made a few changes and merged the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants