比目用户:
2016-09-22 13:42:48
#4
Process: com.example.helloword, PID: 26642
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.helloword/com.example.helloword.Main2Activity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2187)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at cn.bmob.newim.core.b.b.b(BTPConnectionObj.java:4117)
at cn.bmob.newim.core.BmobIMClient.init(BmobIMClient.java:171)
at cn.bmob.newim.BmobIM.(BmobIM.java:79)
at cn.bmob.newim.BmobIM.a(BmobIM.java:71)
at cn.bmob.newim.BmobIM.init(BmobIM.java:91)
at com.example.helloword.Main2Activity.onCreate(Main2Activity.java:26)
at android.app.Activity.performCreate(Activity.java:5274)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2151)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2236)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
at java.lang.reflect.Method.invokeNative(Native Method)
这个错误,怎么会空指针