easemob / im_flutter_sdk

环信im flutter sdk, example中包含ui代码.
MIT License
234 stars 86 forks source link

登录提示null引用 #527

Closed ixre closed 1 year ago

ixre commented 1 year ago
/MethodChannel#com.chat.im/chat_client(12501): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.hyphenate.chat.core.EMChatConfigPrivate.l()' on a null object reference
E/MethodChannel#com.chat.im/chat_client(12501):     at com.hyphenate.chat.EMClient.login(Unknown Source:24)
E/MethodChannel#com.chat.im/chat_client(12501):     at com.easemob.im_flutter_sdk.EMClientWrapper.login(EMClientWrapper.java:154)
E/MethodChannel#com.chat.im/chat_client(12501):     at com.easemob.im_flutter_sdk.EMClientWrapper.onMethodCall(EMClientWrapper.java:64)
E/MethodChannel#com.chat.im/chat_client(12501):     at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#com.chat.im/chat_client(12501):     at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/MethodChannel#com.chat.im/chat_client(12501):     at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:319)
E/MethodChannel#com.chat.im/chat_client(12501):     at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
E/MethodChannel#com.chat.im/chat_client(12501):     at android.os.Handler.handleCallback(Handler.java:938)
E/MethodChannel#com.chat.im/chat_client(12501):     at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#com.chat.im/chat_client(12501):     at android.os.Looper.loopOnce(Looper.java:201)
E/MethodChannel#com.chat.im/chat_client(12501):     at android.os.Looper.loop(Looper.java:288)
dujiepeng commented 1 year ago

@ixre 没有进行初始化吧。

ixre commented 1 year ago

是的没有初始化