fossmium / OneDrive-Cloud-Player

OneDrive Cloud Player is a media player dedicated for streaming files directly from OneDrive.
GNU General Public License v2.0
60 stars 7 forks source link

Application crash on playing second video #69

Closed TimGels closed 2 years ago

TimGels commented 2 years ago

The application sometimes crashes when trying to play the second video in the application session. This can be reproduced on my machine by removing the graphcache.json file from the LocalState directory and playing a video for the second time without closing the application in between (so it does not write the cache file).

TimGels commented 2 years ago

When navigating to a directory and back before playing a video (for the second time) that resides in the root, the application does not crash anymore as a result of the exception that we throw.

JohannesKauffmann commented 2 years ago

Exception is thrown in the video player viewmodel, because List.IndexOf returns -1. However, List.Contains returns true.