In the method createTranscodeInputStream, there is the possibility to get NullPointerException, when there is now artist and/or album information and it's requested in the transcoding command.
It's the following few lines :
before:
Code: Select all
if (title == null) {
title = "Unknown Song";
}
if (album == null) {
title = "Unknown Album";
}
if (artist == null) {
title = "Unknown Artist";
}
Code: Select all
if (title == null) {
title = "Unknown Song";
}
if (album == null) {
album = "Unknown Album";
}
if (artist == null) {
artist = "Unknown Artist";
}
Code: Select all
if (cmd.contains("%l")) {
cmd = cmd.replace("%l", album);
}
if (cmd.contains("%a")) {
cmd = cmd.replace("%a", artist);
}
/Otherland