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

NullPointerException when trying on Android corrupt video file #458

Open
Toby237 opened this issue Jan 8, 2023 · 0 comments
Open

NullPointerException when trying on Android corrupt video file #458

Toby237 opened this issue Jan 8, 2023 · 0 comments

Comments

@Toby237
Copy link

Toby237 commented Jan 8, 2023

I am trying to create a movie object out of a mp4 file that is corrupt (because of an abrupt interruption during a video recording on an Android phone).

However I end up with the exception:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List org.mp4parser.boxes.iso14496.part12.MovieBox.getBoxes(java.lang.Class)' on a null object reference

I know that the file exists, and that the file path is correct, the error is thrown when I try to run this line of code:
MovieCreator.build("theFile.mp4")

Does this mean that this library cannot be used on this file?

(I can also mention that the line of code above works fine on a non-corrupt mp4 video file)

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

No branches or pull requests

1 participant