Error when Rename File Only is enabled and subfolder part of filename is empty

Description

Error when Rename File Only is enabled and subfolder part of filename is empty

java.lang.IllegalArgumentException
at sun.nio.fs.WindowsPath.subpath(Unknown Source)
at sun.nio.fs.WindowsPath.subpath(Unknown Source)
at com.jthink.songkong.analyse.analyser.FileRenamer.renameFilenameBasedOnMetadata(FileRenamer.java:81)
at com.jthink.songkong.analyse.analyser.FileRenamer.renameFileBasedOnMetadata(FileRenamer.java:269)
at com.jthink.songkong.analyse.analyser.SongSaver.saveSongToFile(SongSaver.java:557)
at com.jthink.songkong.analyse.analyser.SongSaver.saveChanges(SongSaver.java:159)
at com.jthink.songkong.analyse.analyser.SongSaver.call(SongSaver.java:134)
at com.jthink.songkong.analyse.analyser.SongSaver.call(SongSaver.java:52)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Environment

None

Status

Assignee

Unassigned

Reporter

Paul Taylor

Labels

None

Forum Username

JeffreyLavine

os

None

Components

Fix versions

Affects versions

3.21

Priority

Major
Configure