{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/bc210e4ec8a4c9c91599c68210ac2d33?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bc210e4ec8a4c9c91599c68210ac2d33","url":"https://api.github.com/users/manuelciosici","login":"manuelciosici","id":51477},"milestone":null,"assignee":null,"updated_at":"2011-11-07T16:04:29Z","labels":[],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/greenrobot/greenDAO/issues/5","body":"If an entity that implements Parcelable is passed from one Activity to another and the Parcelable class is not implemented correctly (not sending the id property) the update method fails without a clear failure message.\r\n\r\nSee stack trace:\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): FATAL EXCEPTION: main\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { (has extras) }} to activity {com.z/com.z.areas.ActivityGeo}: java.lang.NullPointerException\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread.deliverResults(ActivityThread.java:2504)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread.handleSendResult(ActivityThread.java:2546)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread.access$2000(ActivityThread.java:121)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:966)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.os.Looper.loop(Looper.java:123)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread.main(ActivityThread.java:3652)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat java.lang.reflect.Method.invoke(Method.java:507)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat dalvik.system.NativeStart.main(Native Method)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): Caused by: java.lang.NullPointerException\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat de.greenrobot.dao.AbstractDao.updateInsideSynchronized(AbstractDao.java:444)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat de.greenrobot.dao.AbstractDao.update(AbstractDao.java:428)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat com.z.areas.Area.update(Area.java:131)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat com.z.areas.ActivityGeo.onActivityResult(ActivityGeo.java:137)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.Activity.dispatchActivityResult(Activity.java:3907)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \tat android.app.ActivityThread.deliverResults(ActivityThread.java:2500)\r\n11-07 16:54:43.114: E/AndroidRuntime(21655): \t... 11 more","html_url":"https://github.com/greenrobot/greenDAO/issues/5","number":5,"title":"update doesn't fail gracefully in case of a missing id column","id":2164095,"created_at":"2011-11-07T16:04:29Z"},"action":"opened"}