-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MediaPlayer.create returns null #3855
Comments
Also had problems using ShadowMediaPlayer, tried to create simple player with |
I inherited my own ShadowMediaPlayer to implement the `@Implements(MediaPlayer.class)
}` |
Hmm, I've encountered this bug. Would be great to add this to the library |
@PuntoDiGoccia can you reopen, please? This should be in the Robolectric framework really, shouldn't it, @xian? |
@Kisty sure can do if it can improve the framework |
Description
MediaPlayer.create always returns null.
I dug into Robolectric framework and looks like this ShadowMediaPlayer's method fails:
getMediaInfo() returns null, which throws a NullPointerException, which in turn returns null to MediaPlayer.create
Steps to Reproduce
Robolectric & Android Version
Robolectric 3.8
Gradle 4.1
Android Plugin 3.0.1
AndroidStudio 3.1.1
The text was updated successfully, but these errors were encountered: