Radio++ (radio@driglu4it): saveStations() lacks null-guard on external station data (same class as #9000)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Open src/ui/RadioPopupMenu/UpdateStationsMenuItem.ts and start at the saveStations() success callback that maps radio-browser.info responses. Check the handling of name and url when either is null or missing; done means malformed station entries no longer throw and the update flow can complete.
Written by the indexing model from the issue text.
Description
In src/ui/RadioPopupMenu/UpdateStationsMenuItem.ts, the saveStations() success callback runs name.trim() / url.trim() unguarded on data returned by the radio-browser.info API. The RadioStation interface declares these as required strings, but nothing at runtime enforces that against the actual API response — a station entry with a missing/null name or url will throw.
This is the same class of defect as #9000 (missing null-safety on data crossing an external/API boundary), just a different call site. If it fires, it likely also triggers the "stuck on Updating..." behavior described in the sibling issue about HttpHandler.ts's missing try/catch, since it happens mid-callback inside the same update flow.
Suggested fix: (name ?? '').trim() / (url ?? '').trim(), or filter out entries with falsy name/url before mapping.
- Dominant language
- JavaScript
- Stars
- 758
- Forks
- 729
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/cinnamon-spices-applets
-
BUG
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
linuxmint/cinnamon-spices-applets#9031 ·
-
BUG
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
linuxmint/cinnamon-spices-applets#9015 ·
-
FEATURE REQUEST
Difficulty 1/5 Under an hour Newbie friendliness 90/100
linuxmint/cinnamon-spices-applets#9011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
linuxmint/cinnamon-spices-applets#9006 ·
-
Radio++ (radio@driglu4it): download-from-YouTube command breaks on titles ending in a backslash Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
linuxmint/cinnamon-spices-applets#9002 · 1 comment ·
All issues in linuxmint/cinnamon-spices-applets
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·