Anyone know what would cause this error? 12-30 10:26:50.858: ERROR/AndroidRuntime(921): Uncaught handler: thread main exiting due to uncaught exception
12-30 10:26:50.928: ERROR/AndroidRuntime(921): java.lang.RuntimeException: Unable to stop activity {com.mallet.dtool/ com.mallet.dtool.Sheet}: java.lang.NullPointerException 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread.performStopActivityInner (ActivityThread.java:3124) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread.handleStopActivity(ActivityThread.java: 3167) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread.access$2400(ActivityThread.java:116) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1810) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.os.Handler.dispatchMessage(Handler.java:99) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.os.Looper.loop(Looper.java:123) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread.main(ActivityThread.java:4203) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at java.lang.reflect.Method.invokeNative(Native Method) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at java.lang.reflect.Method.invoke(Method.java:521) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at dalvik.system.NativeStart.main(Native Method) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): Caused by: java.lang.NullPointerException 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.Activity.performStop(Activity.java:3604) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): at android.app.ActivityThread.performStopActivityInner (ActivityThread.java:3121) 12-30 10:26:50.928: ERROR/AndroidRuntime(921): ... 11 more This is the code it runs when I get the error (this is a context menu option from a listview) Cursor c = db.getInfo(name); c.moveToPosition(info.position - 1); Intent i = new Intent(this, Select.class); i.putExtra(name, c.getString(c.getColumnIndexOrThrow (DBAdapter.KEY_NAME))); startActivity(i); this launches another activity that when opened from other areas of my app work fine. I checked to see if it had anything to do with the extras and it didn't seem to(i removed them entirely). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en