{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/1064","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/1064/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/1064/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/1064/events","html_url":"https://github.com/google/ExoPlayer/pull/1064","id":122346833,"number":1064,"title":"Fix nullptr when playing HLS streams with AAC audio","user":{"login":"RikHeijdens","id":7520719,"avatar_url":"https://avatars.githubusercontent.com/u/7520719?v=3","gravatar_id":"","url":"https://api.github.com/users/RikHeijdens","html_url":"https://github.com/RikHeijdens","followers_url":"https://api.github.com/users/RikHeijdens/followers","following_url":"https://api.github.com/users/RikHeijdens/following{/other_user}","gists_url":"https://api.github.com/users/RikHeijdens/gists{/gist_id}","starred_url":"https://api.github.com/users/RikHeijdens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RikHeijdens/subscriptions","organizations_url":"https://api.github.com/users/RikHeijdens/orgs","repos_url":"https://api.github.com/users/RikHeijdens/repos","events_url":"https://api.github.com/users/RikHeijdens/events{/privacy}","received_events_url":"https://api.github.com/users/RikHeijdens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/cla:%20yes","name":"cla: yes","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-15T19:28:15Z","updated_at":"2015-12-16T11:19:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/google/ExoPlayer/pulls/1064","html_url":"https://github.com/google/ExoPlayer/pull/1064","diff_url":"https://github.com/google/ExoPlayer/pull/1064.diff","patch_url":"https://github.com/google/ExoPlayer/pull/1064.patch"},"body":"This pull request fixes the following nullpointer:\r\n\r\n```\r\n12-15 14:26:59.053 865-1381/com.google.android.exoplayer.demo E/ExoPlayerImplInternal: Internal runtime error.\r\n                                                                                       java.lang.NullPointerException: Attempt to read from field 'com.google.android.exoplayer.extractor.RollingSampleBuffer com.google.android.exoplayer.extractor.DefaultTrackOutput.rollingBuffer' on a null object reference\r\n                                                                                           at com.google.android.exoplayer.extractor.DefaultTrackOutput.configureSpliceTo(DefaultTrackOutput.java:189)\r\n                                                                                           at com.google.android.exoplayer.hls.HlsExtractorWrapper.configureSpliceTo(HlsExtractorWrapper.java:159)\r\n                                                                                           at com.google.android.exoplayer.hls.HlsSampleSource.readData(HlsSampleSource.java:302)\r\n                                                                                           at com.google.android.exoplayer.SampleSourceTrackRenderer.readSource(SampleSourceTrackRenderer.java:178)\r\n                                                                                           at com.google.android.exoplayer.MediaCodecTrackRenderer.feedInputBuffer(MediaCodecTrackRenderer.java:579)\r\n                                                                                           at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:473)\r\n                                                                                           at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:431)\r\n                                                                                           at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:213)\r\n                                                                                           at android.os.Handler.dispatchMessage(Handler.java:98)\r\n                                                                                           at android.os.Looper.loop(Looper.java:145)\r\n                                                                                           at android.os.HandlerThread.run(HandlerThread.java:61)\r\n                                                                                           at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n12-15 14:26:59.083 865-865/com.google.android.exoplayer.demo V/BitmapFactory: DecodeImagePath(decodeResourceStream3) : res/drawable-xxhdpi-v4/ic_media_pause.png\r\n12-15 14:26:59.083 865-865/com.google.android.exoplayer.demo E/EventLogger: playerFailed [5.02]\r\n                                                                            com.google.android.exoplayer.ExoPlaybackException: java.lang.NullPointerException: Attempt to read from field 'com.google.android.exoplayer.extractor.RollingSampleBuffer com.google.android.exoplayer.extractor.DefaultTrackOutput.rollingBuffer' on a null object reference\r\n                                                                                at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:246)\r\n                                                                                at android.os.Handler.dispatchMessage(Handler.java:98)\r\n                                                                                at android.os.Looper.loop(Looper.java:145)\r\n                                                                                at android.os.HandlerThread.run(HandlerThread.java:61)\r\n                                                                                at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n                                                                             Caused by: java.lang.NullPointerException: Attempt to read from field 'com.google.android.exoplayer.extractor.RollingSampleBuffer com.google.android.exoplayer.extractor.DefaultTrackOutput.rollingBuffer' on a null object reference\r\n                                                                                at com.google.android.exoplayer.extractor.DefaultTrackOutput.configureSpliceTo(DefaultTrackOutput.java:189)\r\n                                                                                at com.google.android.exoplayer.hls.HlsExtractorWrapper.configureSpliceTo(HlsExtractorWrapper.java:159)\r\n                                                                                at com.google.android.exoplayer.hls.HlsSampleSource.readData(HlsSampleSource.java:302)\r\n                                                                                at com.google.android.exoplayer.SampleSourceTrackRenderer.readSource(SampleSourceTrackRenderer.java:178)\r\n                                                                                at com.google.android.exoplayer.MediaCodecTrackRenderer.feedInputBuffer(MediaCodecTrackRenderer.java:579)\r\n                                                                                at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:473)\r\n                                                                                at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:431)\r\n                                                                                at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:213)\r\n                                                                                at android.os.Handler.dispatchMessage(Handler.java:98) \r\n                                                                                at android.os.Looper.loop(Looper.java:145) \r\n                                                                                at android.os.HandlerThread.run(HandlerThread.java:61) \r\n                                                                                at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40) \r\n```\r\n\r\nThe nullpointer seems to be related to discontinuities in the stream.\r\n\r\nAny feedback is appreciated, CLA has been signed."},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/165070616","html_url":"https://github.com/google/ExoPlayer/pull/1064#issuecomment-165070616","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/1064","id":165070616,"user":{"login":"ojw28","id":7881572,"avatar_url":"https://avatars.githubusercontent.com/u/7881572?v=3","gravatar_id":"","url":"https://api.github.com/users/ojw28","html_url":"https://github.com/ojw28","followers_url":"https://api.github.com/users/ojw28/followers","following_url":"https://api.github.com/users/ojw28/following{/other_user}","gists_url":"https://api.github.com/users/ojw28/gists{/gist_id}","starred_url":"https://api.github.com/users/ojw28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojw28/subscriptions","organizations_url":"https://api.github.com/users/ojw28/orgs","repos_url":"https://api.github.com/users/ojw28/repos","events_url":"https://api.github.com/users/ojw28/events{/privacy}","received_events_url":"https://api.github.com/users/ojw28/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T11:19:25Z","updated_at":"2015-12-16T11:19:25Z","body":"Well, it'll definitely fix the crash. If it's also allowing playback to proceed successfully, I'd hazard a guess that there's actually something wrong in the HLS stream you're providing."}}