聊天时点击发送报空指针错误,如下图,急求解决下
错误代码如下:
10-19 23:49:12.505 6605-6605/com.example.djd.lastem E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException
at com.hyphenate.easeui.model.EasePreferenceManager.(EasePreferenceManager.java:16)
at com.hyphenate.easeui.model.EasePreferenceManager.getInstance(EasePreferenceManager.java:23)
at com.hyphenate.easeui.model.EaseAtMessageHelper.(EaseAtMessageHelper.java:34)
at com.hyphenate.easeui.model.EaseAtMessageHelper.get(EaseAtMessageHelper.java:27)
at com.hyphenate.easeui.ui.EaseChatFragment.sendTextMessage(EaseChatFragment.java:665)
at com.hyphenate.easeui.ui.EaseChatFragment$1.onSendMessage(EaseChatFragment.java:155)
at com.hyphenate.easeui.widget.EaseChatInputMenu$1.onSendBtnClicked(EaseChatInputMenu.java:184)
at com.hyphenate.easeui.widget.EaseChatPrimaryMenu.onClick(EaseChatPrimaryMenu.java:161)
at android.view.View.performClick(View.java:4255)
at android.view.View$PerformClick.run(View.java:17760)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5164)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
10-19 23:54:02.915 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
10-19 23:54:02.915 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache
10-19 23:54:02.935 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'com.hyphenate.chat.EMCallManager', referenced from method com.hyphenate.chat.EMClient.callManager
10-19 23:49:12.505 6605-6605/com.example.djd.lastem E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException
at com.hyphenate.easeui.model.EasePreferenceManager.
at com.hyphenate.easeui.model.EasePreferenceManager.getInstance(EasePreferenceManager.java:23)
at com.hyphenate.easeui.model.EaseAtMessageHelper.
at com.hyphenate.easeui.model.EaseAtMessageHelper.get(EaseAtMessageHelper.java:27)
at com.hyphenate.easeui.ui.EaseChatFragment.sendTextMessage(EaseChatFragment.java:665)
at com.hyphenate.easeui.ui.EaseChatFragment$1.onSendMessage(EaseChatFragment.java:155)
at com.hyphenate.easeui.widget.EaseChatInputMenu$1.onSendBtnClicked(EaseChatInputMenu.java:184)
at com.hyphenate.easeui.widget.EaseChatPrimaryMenu.onClick(EaseChatPrimaryMenu.java:161)
at android.view.View.performClick(View.java:4255)
at android.view.View$PerformClick.run(View.java:17760)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5164)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
10-19 23:54:02.915 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
10-19 23:54:02.915 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache
10-19 23:54:02.935 18091-18091/com.example.djd.lastem E/dalvikvm: Could not find class 'com.hyphenate.chat.EMCallManager', referenced from method com.hyphenate.chat.EMClient.callManager
没有找到相关结果
已邀请:
1 个回复
Wxin