check for isBlank()
This commit is contained in:
@@ -41,9 +41,13 @@ public class MidiConverter implements Converter {
|
||||
if (mm.getType() == SET_TEMPO) {
|
||||
tempoEvents.add(event);
|
||||
} else if (mm.getType() == TRACK_NAME && isFirst) {
|
||||
songName = new String(mm.getData()) + " (" + name + ")"; // i have put the ` (filename)` just in case the sequence is getting sus (like Track 2 for example)
|
||||
final String stringTitle = new String(mm.getData());
|
||||
|
||||
isFirst = false;
|
||||
if (stringTitle.isBlank()) {
|
||||
songName = stringTitle + " (" + name + ")"; // i have put the ` (filename)` just in case the sequence is getting sus (like Track 2 for example)
|
||||
|
||||
isFirst = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user