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

Null exception when getMyMembership #26

Open
Zlotkowski opened this issue Aug 28, 2023 · 0 comments
Open

Null exception when getMyMembership #26

Zlotkowski opened this issue Aug 28, 2023 · 0 comments

Comments

@Zlotkowski
Copy link

Zlotkowski commented Aug 28, 2023

Hello, I have some null exception issue when i try getMyMembership. channel exist, user joining to channel, channel id is same as in Cloud Console. Sending messages works fine

AmityChatClient.newChannelRepository() .membership(widget.channelId) .getMyMembership() .then((value) => print(value));

Stack trace:

flutter: #0 ChannelUserHiveExtensionConverter.convertToAmityChannelMember (package:amity_sdk/src/data/converter/channel/channel_user_hive_entity_extension_converter.dart:10:68) #1 ChannelMemberRepoImpl.getMember (package:amity_sdk/src/data/repo_impl/channel_member_repo_impl.dart:41:18) #2 ChannelMemberGetUsecase.get (package:amity_sdk/src/domain/usecase/channel/member/channel_member_get_usecase.dart:23:33) #3 AmityChannelParticipation.getMyMembership (package:amity_sdk/src/public/repo/channel/amity_channel_participation.dart:21:54) #4 _AddChatMessageState.build (package:belive/features/social/presentation/chat/add_chat_message.dart:29:20) #5 StatefulElement.build (package:flutter/src/widgets/framework.dart:5198:27) #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5086:15) #7 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5251:11) #8 Element.rebuild (package:flutter/src/widgets/framework.dart:4<…>

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

1 participant