Crash on Sync SD

Bug #1039817 reported by SlumDroid
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tomdroid
Fix Released
Undecided
Unassigned

Bug Description

Tomdroid 0.7.0 crashes when to try "Sync" notes but there aren't notes on SD

In Settings, Service is on "SD Card".
Steps to reproduce are:
1) In Main Activity, Open Menu.
2) Click on Sync
3) In dialog "Error" click on Save

The obtained exception stacktrace is reported below:

E/AndroidRuntime( 635): FATAL EXCEPTION: main
E/AndroidRuntime( 635): java.lang.NullPointerException
E/AndroidRuntime( 635): at org.tomdroid.util.ErrorList.save(ErrorList.java:125)
E/AndroidRuntime( 635): at org.tomdroid.ui.Tomdroid$SyncMessageHandler$1.onClick(Tomdroid.java:776)
E/AndroidRuntime( 635): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:159)
E/AndroidRuntime( 635): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 635): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 635): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 635): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 635): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 635): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 635): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 635): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 68): Force finishing activity org.tomdroid/.ui.Tomdroid

SlumDroid (rame276)
description: updated
summary: - Crash on Sync & Revert All
+ Crash on Sync SD
Revision history for this message
NoahY (noahy) wrote :

I can't reproduce this; do you have any information about what the error is that it's trying to save? I think I can create a workaround, but I'm not sure. Please try the latest code and let me know if it is fixed.

Changed in tomdroid:
status: New → Incomplete
Changed in tomdroid:
milestone: none → 0.7.2
SlumDroid (rame276)
Changed in tomdroid:
status: Incomplete → Fix Committed
Revision history for this message
Stefan Hammer (j-4-deactivatedaccount) wrote :

Fix committed -> does this mean, with the newest code you do not see this error any more?

SlumDroid (rame276)
Changed in tomdroid:
status: Fix Committed → Incomplete
Revision history for this message
SlumDroid (rame276) wrote :

Tomdroid 0.7.1 don't crashes :)
Good work!

P.S.:
I like the new look of version 0.7.1

Changed in tomdroid:
status: Incomplete → Fix Committed
Olivier Bilodeau (plaxx)
Changed in tomdroid:
milestone: 0.7.2 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.