jitwxs / 163MusicLyrics

Windows 云音乐歌词获取【网易云、QQ音乐】
Apache License 2.0
1.91k stars 101 forks source link

5.7 当歌曲无歌词时查询报错 #152

Closed llq520 closed 1 year ago

llq520 commented 1 year ago

BUG 描述 Describe the bug

~请在此处简要描述问题。A clear and concise description of what the bug is.~

有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾。

** 异常文本 ** System.NullReferenceException: 未将对象引用设置到对象的实例。 在 MusicLyricApp.Utils.LyricUtils.SplitLrc(String lrc) 在 MusicLyricApp.Utils.LyricUtils.SplitLrc(String lrc, SearchSourceEnum searchSource, Boolean ignoreEmptyLine) 在 MusicLyricApp.Utils.LyricUtils.d4.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() 在 MusicLyricApp.Utils.LyricUtils.d1.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() 在 MusicLyricApp.MainForm.d23.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

版本 Version5.7

~告知您的版本。Tell us version.~

复现步骤 Reclaim step

~1. 粘贴链接到单曲 示例链接 https://music.163.com/song?id=1496948773&userid=117315533

  1. 点精确搜索

  2. 经测试为原链接歌曲无歌词,只有报错。歌曲直链获取正常。 有歌词的歌曲链接获取无报错提示。 错误日志(可选) Error Log(Optional)

2023-01-03 23:40:28.4371 | ERROR | Search Business failed, btn: "Blur_Search_Btn", param: "https://music.163.com/song?id=1496948773&userid=117315533", type: SONG_ID, message: "查询结果为空,请修改查询条件"

~可上传程序 Logs 目录下的日志文件,帮助定位问题~