diff --git a/lib/http/danmaku.dart b/lib/http/danmaku.dart index 0b1087556..bb38d43ce 100644 --- a/lib/http/danmaku.dart +++ b/lib/http/danmaku.dart @@ -19,6 +19,9 @@ class DanmakaHttp { data: params, extra: {'resType': ResponseType.bytes}, ); + if (response.statusCode != 200 || response.data == null) { + return DmSegMobileReply(); + } return DmSegMobileReply.fromBuffer(response.data); }