修复问题

This commit is contained in:
lyswhut 2021-08-12 14:16:03 +08:00
parent 0f19c38840
commit aa68943bc2

View File

@ -89,6 +89,7 @@ public class Lyric extends LyricPlayer {
private void setViewLyric(int lineNum) { private void setViewLyric(int lineNum) {
lastLine = lineNum; lastLine = lineNum;
if (lyricView == null) return; if (lyricView == null) return;
if (lineNum > lines.size() - 1) return;
HashMap line = (HashMap) lines.get(lineNum); HashMap line = (HashMap) lines.get(lineNum);
if (line == null) { if (line == null) {
lyricView.setLyric("", ""); lyricView.setLyric("", "");