From 85f325b300dd4e6f54c783b2f9065ab4c566e3ad Mon Sep 17 00:00:00 2001 From: real-zony Date: Thu, 22 Sep 2022 17:53:19 +0800 Subject: [PATCH] fix: Fixed null reference exception. --- .../Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs index 4461351..3767997 100644 --- a/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs +++ b/src/ZonyLrcTools.Cli/Infrastructure/Lyric/NetEase/NetEaseLyricDownloader.cs @@ -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)