Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on Sync SD #177

Closed
obilodeau opened this issue Aug 23, 2016 · 3 comments
Closed

Crash on Sync SD #177

obilodeau opened this issue Aug 23, 2016 · 3 comments

Comments

@obilodeau
Copy link
Member

obilodeau commented Aug 23, 2016

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


Imported from Launchpad using lp2gh.

@obilodeau
Copy link
Member Author

(by noahy)
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.

@obilodeau
Copy link
Member Author

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

@obilodeau
Copy link
Member Author

(by rame276)
Tomdroid 0.7.1 don't crashes :)
Good work!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant