I am getting stack traces like this on force close of a soundboard app. I am still trying to decipher what it is saying. I'm really new at this.
java.lang.NullPointerException
at com.squeaker.app.main$37.onClick(main.java:447)
at android.view.View.performClick(View.java:2408)
at android.view.View$PerformClick.run(View.java:8818)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.开发者_如何学编程main(Native
check the 447th line on com.squeaker.app.main$37.onClick
One of the object is null and your code is trying to perform something on a null object. Most likely if you are calling methods in this line like:
someObject.someMethod();
It means that someObject is null. Then go back and figure out why this someObject is null
精彩评论