main(2)
java.lang.NullPointerException
Attempt to read from field 'cn.wildfirechat.model.Conversation$ConversationType cn.wildfirechat.model.Conversation.type' on a null object reference
解析原始
| 1 java.lang.RuntimeException:Unable to pause activity {cn.diandengpao2018416/cn.wildfire.chat.kit.conversation.ConversationActivity}: java.lang.NullPointerException: Attempt to read from field 'cn.wildfirechat.model.Conversation$ConversationType cn.wildfirechat.model.Conversation.type' on a null object reference |
| 2 android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4078) |
| 3 ...... |
| 4 Caused by: |
| 5 java.lang.NullPointerException:Attempt to read from field 'cn.wildfirechat.model.Conversation$ConversationType cn.wildfirechat.model.Conversation.type' on a null object reference |
| 6 cn.wildfirechat.remote.ChatManager.setConversationDraft(Unknown Source:9) |
| 7 cn.wildfire.chat.kit.viewmodel.MessageViewModel.saveDraft(Unknown Source:4) |
| 8 cn.wildfire.chat.kit.conversation.ConversationInputPanel.onActivityPause(Unknown Source:56) |
| 9 cn.wildfire.chat.kit.conversation.ConversationFragment.onPause(Unknown Source:5) |
| 10 androidx.fragment.app.Fragment.performPause(Unknown Source:29) |
| 11 androidx.fragment.app.FragmentManager.moveToState(Unknown Source:776) |
| 12 androidx.fragment.app.FragmentManager.moveToState(Unknown Source:2) |
| 13 androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(Unknown Source:61) |
| 14 androidx.fragment.app.FragmentManager.moveToState(Unknown Source:43) |
| 15 androidx.fragment.app.FragmentManager.dispatchStateChange(Unknown Source:4) |
| 16 androidx.fragment.app.FragmentManager.dispatchPause(Unknown Source:1) |
| 17 androidx.fragment.app.FragmentController.dispatchPause(Unknown Source:4) |
| 18 androidx.fragment.app.FragmentActivity.onPause(Unknown Source:8) |
| 19 cn.wildfire.chat.kit.WfcBaseActivity.onPause(Unknown Source:0) |
| 20 android.app.Activity.performPause(Activity.java:7444) |
| 21 android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1466) |
| 22 android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4068) |
| 23 android.app.ActivityThread.performPauseActivity(ActivityThread.java:4033) |
| 24 android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3982) |
| 25 android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:45) |
| 26 android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145) |
| 27 android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) |
| 28 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831) |
| 29 android.os.Handler.dispatchMessage(Handler.java:106) |
| 30 android.os.Looper.loop(Looper.java:201) |
| 31 android.app.ActivityThread.main(ActivityThread.java:6810) |
| 32 java.lang.reflect.Method.invoke(Native Method) |
| 33 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) |
| 34 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) |