注册

android 播放语音聊天 空指针异常

java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.hyphenate.easeui.EaseUI$EaseSettingsProvider.isSpeakerOpened()' on a null object reference
                                                                            at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.playVoice(EaseChatRowVoicePlayClickListener.java:93)
                                                                            at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoicePlayClickListener.onClick(EaseChatRowVoicePlayClickListener.java:172)
                                                                            at com.hyphenate.easeui.widget.chatrow.EaseChatRowVoice.onBubbleClick(EaseChatRowVoice.java:97)
                                                                            at com.hyphenate.easeui.widget.chatrow.EaseChatRow$3.onClick(EaseChatRow.java:268)
                                                                            at android.view.View.performClick(View.java:4811)
                                                                            at android.view.View$PerformClick.run(View.java:20136)
                                                                            at android.os.Handler.handleCallback(Handler.java:815)
                                                                            at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                            at android.os.Looper.loop(Looper.java:194)
                                                                            at android.app.ActivityThread.main(ActivityThread.java:5546)
                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                            at java.lang.reflect.Method.invoke(Method.java:372)
                                                                            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:967)
                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
已邀请:
已经解决,初始化
DemoHelper

要回复问题请先登录注册