fix: Fixed null reference exception.

This commit is contained in:
real-zony 2022-09-22 17:53:19 +08:00
parent 140043db79
commit 85f325b300

View File

@ -70,8 +70,8 @@ namespace ZonyLrcTools.Cli.Infrastructure.Lyric.NetEase
}
return _lyricItemCollectionFactory.Build(
json.OriginalLyric.Text,
json.TranslationLyric.Text);
json.OriginalLyric?.Text,
json.TranslationLyric?.Text);
}
protected virtual void ValidateSongSearchResponse(SongSearchResponse response, LyricDownloaderArgs args)