Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

NullPointerException on cancelling VideoPicker #36

Closed
ATizik opened this issue Aug 18, 2017 · 2 comments
Closed

NullPointerException on cancelling VideoPicker #36

ATizik opened this issue Aug 18, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@ATizik
Copy link

ATizik commented Aug 18, 2017

If user chooses to upload video through gallery, but then cancels, an app throws NullPointerException.

new VideoPicker.Builder(activity)
.mode(VideoPicker.Mode.CAMERA_AND_GALLERY)
.directory(VideoPicker.Directory.DEFAULT)
.build();

08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'android.net.Uri android.content.Intent.getData()' on a null object reference
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at net.alhazmy13.mediapicker.Video.VideoActivity.processOneVideo(VideoActivity.java:223)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at net.alhazmy13.mediapicker.Video.VideoActivity.processVideo(VideoActivity.java:203)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at net.alhazmy13.mediapicker.Video.VideoActivity.onActivityResult(VideoActivity.java:176)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.Activity.dispatchActivityResult(Activity.java:6235)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.ActivityThread.deliverResults(ActivityThread.java:3570)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.ActivityThread.handleSendResult(ActivityThread.java:3617)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.ActivityThread.access$1300(ActivityThread.java:151)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1352)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.os.Looper.loop(Looper.java:135)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5254)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at java.lang.reflect.Method.invoke(Native Method)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
08-18 13:49:00.641 25335-25335/com.example.atizik.testrdp W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

@alhazmy13 alhazmy13 self-assigned this Aug 20, 2017
@alhazmy13 alhazmy13 added the bug label Aug 20, 2017
@alhazmy13
Copy link
Owner

Hi @ATizik
Can you please provide more details, are you using a real device or with the emulator? And if it real with kind of devices?

@ATizik
Copy link
Author

ATizik commented Dec 7, 2017

Real device, Lenovo PB1-770M, stock Android 5.1.1

@alhazmy13 alhazmy13 mentioned this issue Dec 9, 2017
@alhazmy13 alhazmy13 added this to the 2.4.0 milestone Dec 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants