We're updating the issue view to help you get more done. 

Incorrect use of getAbsolutePath() on moved files during Delete Duplicates.

Description

Comparator failing if songs are moved (by iTunes) during Delete Duplicates analysis, with further error when try to delete songs, but the second error occurs because trying to use getAbsolutePath() on a non-existent file.

java.io.FileNotFoundException: Unable to find:/Volumes/LaCie_LaSaw/AAA LaSaw iTunes/iTunes Media/Music/Lily Allen/Alright, Still/04 Everything's Just Wonderful 1.mp3
at org.jaudiotagger.audio.AudioFileIO.checkFileExists(AudioFileIO.java:303)
at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:279)
at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:150)
at com.jthink.songkong.analyse.filename.AudioQualityComparator.compare(AudioQualityComparator.java:34)
at com.jthink.songkong.analyse.filename.AudioQualityComparator.compare(AudioQualityComparator.java:21)
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
at java.util.TimSort.sort(TimSort.java:216)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.deleteDuplicates(DeleteDuplicatesController.java:152)
at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.start(DeleteDuplicatesController.java:385)
at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:54)
at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:22)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

java.lang.Exception
at com.jthink.songkong.analyse.general.Errors.addError(Errors.java:27)
at com.jthink.songkong.analyse.analyser.FileChecker.isFileWritable(FileChecker.java:28)
at com.jthink.songkong.db.SongCache.deleteDuplicateSong(SongCache.java:777)
at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.deleteDuplicates(DeleteDuplicatesController.java:186)
at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.start(DeleteDuplicatesController.java:385)
at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:54)
at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:22)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Environment

None

Status

Assignee

Unassigned

Reporter

IJabz

Labels

None

Forum Username

rogertueting

os

None

Components

Fix versions

Affects versions

3.17

Priority

Major