CappielloAntonio / tempo

An open source and lightweight music client for Subsonic, designed and built natively for Android.
GNU General Public License v3.0
877 stars 39 forks source link

Fix NPE: Check if children exist before adding #42

Closed dnno closed 10 months ago

dnno commented 10 months ago

App crashes if you reach the end of a genre. Not sure if this is the best fix, you'll know if it fits or if there's a better way to go about this....

CappielloAntonio commented 10 months ago

Yes, the solution is correct. The nullcheck should suffice, but the empty list one is fine too.

CappielloAntonio commented 10 months ago

Don't mind opening a new issue before a pull request. It's always handy to keep track of problems encountered and then fixed.