wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.99k stars 1.33k forks source link

Crash report 3.9.1: NPE in MediaUtils.getMediaItemFromVideoCursor #2640

Closed maxme closed 9 years ago

maxme commented 9 years ago
java.lang.RuntimeException: An error occured while executing doInBackground()
       at android.os.AsyncTask$3.done(AsyncTask.java:300)
       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
       at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
       at java.util.concurrent.FutureTask.run(FutureTask.java:242)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException: uriString
       at android.net.Uri$StringUri.(Uri.java:467)
       at android.net.Uri$StringUri.(Uri.java:457)
       at android.net.Uri.parse(Uri.java:429)
       at org.wordpress.mediapicker.MediaUtils.getMediaItemFromVideoCursor(MediaUtils.java:324)
       at org.wordpress.mediapicker.MediaUtils.createMediaItems(MediaUtils.java:89)
       at org.wordpress.mediapicker.source.MediaSourceDeviceVideos.createMediaItems(MediaSourceDeviceVideos.java:40)
       at org.wordpress.mediapicker.source.MediaSourceDeviceImages$GatherDeviceImagesTask.doInBackground(MediaSourceDeviceImages.java:191)
       at org.wordpress.mediapicker.source.MediaSourceDeviceImages$GatherDeviceImagesTask.doInBackground(MediaSourceDeviceImages.java:182)
       at android.os.AsyncTask$2.call(AsyncTask.java:288)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:841)
maxme commented 9 years ago

Note: must be fixed in https://github.com/wordpress-mobile/MediaPicker-Android

maxme commented 9 years ago

fixed via https://github.com/wordpress-mobile/WordPress-Android/pull/2657