-
Android Lurker
Error After Debugging
Hi, I have my first application eclipse throws me an error code, but when run it in the simulator did not open and gives me an error, as the simulator runs with eclipse eclipse throws me the following errors that understand. Thanks before hand.
HTML Code:
07-28 22:43:08.507: E/AndroidRuntime(418): FATAL EXCEPTION: main
07-28 22:43:08.507: E/AndroidRuntime(418): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.voragile.agenda/com.voragile.agenda.AgendaActivity}: java.lang.NullPointerException
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.os.Handler.dispatchMessage(Handler.java:99)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.os.Looper.loop(Looper.java:123)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread.main(ActivityThread.java:3683)
07-28 22:43:08.507: E/AndroidRuntime(418): at java.lang.reflect.Method.invokeNative(Native Method)
07-28 22:43:08.507: E/AndroidRuntime(418): at java.lang.reflect.Method.invoke(Method.java:507)
07-28 22:43:08.507: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-28 22:43:08.507: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
07-28 22:43:08.507: E/AndroidRuntime(418): at dalvik.system.NativeStart.main(Native Method)
07-28 22:43:08.507: E/AndroidRuntime(418): Caused by: java.lang.NullPointerException
07-28 22:43:08.507: E/AndroidRuntime(418): at com.voragile.agenda.AgendaActivity.onCreate(AgendaActivity.java:24)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-28 22:43:08.507: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-28 22:43:08.507: E/AndroidRuntime(418): ... 11 more
-
07-29-2012 06:42 AM
# ADS
Google Advertisement
-
Android Lurker
The critical line in your own code is in AgendaActivity, line 24. You're trying to use a property or method of a variable whose value is null. Put a breakpoint there and examine the environment when you hit it.