Skip to content

fix: add nil checks to get-swap-service#1788

Merged
rolznz merged 1 commit intogetAlby:masterfrom
krrish-sehgal:fix/lookup-swap-crash
Oct 14, 2025
Merged

fix: add nil checks to get-swap-service#1788
rolznz merged 1 commit intogetAlby:masterfrom
krrish-sehgal:fix/lookup-swap-crash

Conversation

@krrish-sehgal
Copy link
Copy Markdown
Contributor

fixes #1787

Multiple methods are calling api.svc.GetSwapsService()without checking if it returns nil.

The code already handled nil checks for GetLNClient() by checking if api.svc.GetLNClient() == nil and returning appropriate errors. I applied the same pattern to GetSwapsService().

Copy link
Copy Markdown
Contributor

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@rolznz rolznz merged commit 392eef4 into getAlby:master Oct 14, 2025
6 of 10 checks passed
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.

LookupSwap crashes if swaps service hasn't been created yet

2 participants