• Andrés G. Aragoneses's avatar
    Mtp: fix NullReferenceException if playlistFolder wasn't found (bgo#733883) · 50bf3cc1
    Andrés G. Aragoneses authored
    There was already a way to try to prevent a NULL playlistFolder
    in the MtpDevice class, but it was insufficient in my case. I'm
    using a Nexus7, and in this case 'device.default_playlist_folder'
    was not 0, but 4294967295 (which apparently is uint.MaxValue).
    
    However, rather than adding yet another magic number in this if
    statement, checking for a NULL playlistFolder at the end of the
    foreach loop seems like a more robust approach.
    50bf3cc1
Name
Last commit
Last update
build Loading commit data...
data Loading commit data...
docs Loading commit data...
extras Loading commit data...
help Loading commit data...
po Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
Banshee.sln Loading commit data...
COPYING Loading commit data...
HACKING Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.l10n Loading commit data...
autogen.sh Loading commit data...
banshee.doap Loading commit data...
bootstrap-bundle Loading commit data...
configure.ac Loading commit data...
profile-configure Loading commit data...
release-rc Loading commit data...