konklone / campyre

RETIRED: A Campfire client for Android.
https://play.google.com/store/apps/details?id=campyre.android
BSD 3-Clause "New" or "Revised" License
68 stars 22 forks source link

Force close when image fails to download #127

Closed konklone closed 13 years ago

konklone commented 13 years ago

For example, an uploaded image that is in the Campfire S3 bucket. :(

01-03 13:09:19.449: ERROR/AndroidRuntime(5606): FATAL EXCEPTION: AsyncTask #1 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): java.lang.RuntimeException: An error occured while executing doInBackground() 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at android.os.AsyncTask$3.done(AsyncTask.java:200) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.FutureTask.setException(FutureTask.java:124) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.lang.Thread.run(Thread.java:1096) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): Caused by: java.lang.NullPointerException 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at campyre.android.Utils.imageFromUrl(Utils.java:223) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at campyre.android.LoadImageTask.doInBackground(LoadImageTask.java:27) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at campyre.android.LoadImageTask.doInBackground(LoadImageTask.java:1) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at android.os.AsyncTask$2.call(AsyncTask.java:185) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 01-03 13:09:19.449: ERROR/AndroidRuntime(5606): ... 4 more 01-03 13:09:21.589: DEBUG/dalvikvm(1465): GC_FOR_MALLOC freed 18499 objects / 1550176 bytes in 55ms