daxcurson / ampflower

Music player for the Ampache server
GNU General Public License v3.0
3 stars 0 forks source link

Expiring session causes album/artist/playlist scroll list to crash the application #27

Open daxcurson opened 2 years ago

daxcurson commented 2 years ago

When the session expires and the user is browsing the list of albums/artists/playlists, the Server sends a response which contains a null data object and an error object, but the callback, which requires the parameters to be non-null, causes an assertion fail and the application crashes. The application should check if the data object received from the server in the Response is non-null, and in case it is, it should be able to catch the error and trigger a renewal of the session key.