Skip to content

Commit

Permalink
fix: Fixed null reference exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
real-zony committed Sep 22, 2022
1 parent 140043d commit 85f325b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ protected override async ValueTask<LyricItemCollection> GenerateLyricAsync(byte[
}

return _lyricItemCollectionFactory.Build(
json.OriginalLyric.Text,
json.TranslationLyric.Text);
json.OriginalLyric?.Text,
json.TranslationLyric?.Text);
}

protected virtual void ValidateSongSearchResponse(SongSearchResponse response, LyricDownloaderArgs args)
Expand Down

0 comments on commit 85f325b

Please sign in to comment.