Properly clear the thumbnail DB when media is removed
1 unresolved thread
1 unresolved thread
Fixes #2726 (closed)
Merge request reports
Activity
Filter activity
changed milestone to %3.6.x
added bug label
requested review from @Skantes
added 4 commits
-
bb4f9d24...bc90fd3e - 3 commits from branch
videolan:master
- 59bc13ed - Properly clear the thumbnail DB when media is removed
-
bb4f9d24...bc90fd3e - 3 commits from branch
Since this commit it crashes when a video is removed :
java.lang.NullPointerException: Attempt to invoke virtual method 'void org.videolan.medialibrary.interfaces.media.MediaWrapper.removeThumbnail()' on a null object reference at org.videolan.vlc.viewmodels.CallBackDelegate.deleteThumbnail(CallBackDelegate.kt:133)
.That's probably because in OnMediaDeleted, the media is already deleted, so medialibrary.getMedia will return null.
mentioned in issue #2989 (closed)