-
Notifications
You must be signed in to change notification settings - Fork 6k
Description
I'm occasionally seeing null being passed to Player.EventListener's onPlayerError() callback.
Issue description
I'm occasionally seeing null being passed to Player.EventListener's onPlayerError() callback.
The listener is registered on a SimpleExoPlayer instance via the addListener() method.
The documentation doesn't say anything about the meaning of no exception being passed to the callback, and the demo doesn't check for null, so it seems this is not intentional.
Also, as far as I can tell, the issue is only occurring with the newest 2.8.0 (gradle) release of the library.
Reproduction steps
I'm afraid I don't know how this can be reliably reproduced. It seems to happen when the Internet connection drops while playing an HLS live stream.
Link to test content
None at this time
Version of ExoPlayer being used
2.8.0, the newest at the time of writing
Device(s) and version(s) of Android being used
Google Nexus 9, running Android 7.0.1
A full bug report captured from the device
Not captured; Logcat didn't contain much help, as the error propagation through the handler seems to not transport the actual source of the onPlayerError call.
I'm sorry for providing so little details! Wanted to report this nevertheless in case anyone else stumbles upon NullPointerExceptions in onPlayerError.