ginatrapani/todo.txt-touch — Issue #242: Force close if no data
Author: eisbehr
Created: 2012-02-07 18:07:15+00:00
State: open

The app force closes when there's no data connection.
Happens when the app starts with no data, but it can be brought back from background without the error.

E/AndroidRuntime(13889): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.todotxt.todotxttouch/com.todotxt.todotxttouch.TodoTxtTouch}: java.lang.NullPointerException
E/AndroidRuntime(13889): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
E/AndroidRuntime(13889): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime(13889): at android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime(13889): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime(13889): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13889): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(13889): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(13889): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(13889): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(13889): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime(13889): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime(13889): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(13889): Caused by: java.lang.NullPointerException
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.util.Util.isOnline(Util.java:351)
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.remote.DropboxRemoteClient.isAvailable(DropboxRemoteClient.java:269)
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.TodoTxtTouch.syncClient(TodoTxtTouch.java:649)
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.TodoTxtTouch.syncClient(TodoTxtTouch.java:622)
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.TodoTxtTouch.initializeTasks(TodoTxtTouch.java:180)
E/AndroidRuntime(13889): at com.todotxt.todotxttouch.TodoTxtTouch.onCreate(TodoTxtTouch.java:157)
E/AndroidRuntime(13889): at android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime(13889): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime(13889): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
E/AndroidRuntime(13889): ... 11 more