Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgoraRtmLocalInvitation.fromJson 解析数据时 responsenull导致异常抛出 #96

Closed
iBinbro opened this issue Aug 31, 2021 · 1 comment

Comments

@iBinbro
Copy link

iBinbro commented Aug 31, 2021

AgoraRtmRemoteInvitation.fromJson(Map<dynamic, dynamic> json)
      : calleeId = json['calleeId'],
        content = json['content'],
        response = json['response'],
        channelId = json['channelId'],
        state = json['state'];
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'String'
#0      new AgoraRtmRemoteInvitation.fromJson (package:agora_rtm/src/utils.dart:115:18)
#11 AgoraRtmClient._eventListener (package:agora_rtm/src/agora_rtm_client.dart:153:45)

response为null会导致异常,这里请都加上 null 判断处理

LichKing-2234 added a commit that referenced this issue Sep 6, 2021
@LichKing-2234
Copy link
Collaborator

fixed

@iBinbro iBinbro closed this as completed Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants