注册

EMClient.getInstance().conferenceManager() 报错空指针

  EMClient.getInstance().conferenceManager() 报错空指针



java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.hzywl.yutie/cn.hzywl.yutie.feature.activity.chatroom.RoomActivity}: java.lang.NullPointerException
                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
                at android.app.ActivityThread.access$800(ActivityThread.java:143)
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
                at android.os.Handler.dispatchMessage(Handler.java:102)
                at android.os.Looper.loop(Looper.java:136)
                at android.app.ActivityThread.main(ActivityThread.java:5120)
                at java.lang.reflect.Method.invokeNative(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:515)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:818)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
                at dalvik.system.NativeStart.main(Native Method)
             Caused by: java.lang.NullPointerException
                at com.superrtc.mediamanager.EMediaManager.setNetChangedDelegate(EMediaManager.java:973)
                at com.superrtc.mediamanager.EMediaManager.(EMediaManager.java:969)
                at com.superrtc.mediamanager.EMediaManager.getInstance(EMediaManager.java:936)
                at com.hyphenate.chat.EMConferenceManager.(Unknown Source)
                at com.hyphenate.chat.EMClient.conferenceManager(Unknown Source)
                at cn.hzywl.yutie.feature.activity.chatroom.RoomActivity.initConference(RoomActivity.kt:66)
                at cn.hzywl.yutie.feature.activity.chatroom.RoomActivity.onCreate(RoomActivity.kt:49)
                at android.app.Activity.performCreate(Activity.java:5351)
                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
                at android.app.ActivityThread.access$800(ActivityThread.java:143)
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
                at android.os.Handler.dispatchMessage(Handler.java:102)
                at android.os.Looper.loop(Looper.java:136)
                at android.app.ActivityThread.main(ActivityThread.java:5120)
                at java.lang.reflect.Method.invokeNative(Native Method)
                at java.lang.reflect.Method.invoke(Method.java:515)
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:818)
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
                at dalvik.system.NativeStart.main(Native Method)
已邀请:

要回复问题请先登录注册