Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TouHou.FM
Client
fm.touhou.touhoufm
Commits
004fd7c9
Commit
004fd7c9
authored
Nov 09, 2017
by
Daniel Sonck
Browse files
Fixed Nullpointer exception
parent
13b0653c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fm/touhou/touhoufm/service/RadioService.java
View file @
004fd7c9
...
...
@@ -280,13 +280,15 @@ public class RadioService extends Service implements AudioManager.OnAudioFocusCh
private
void
stopMusic
()
{
mPlaying
=
false
;
mRingBuffer
.
abort
();
if
(
mRingBuffer
!=
null
)
{
mRingBuffer
.
abort
();
mRingBuffer
=
null
;
}
mAudioPlayer
=
null
;
mRtpReceiver
=
null
;
mRingBuffer
=
null
;
runOnUiThread
(
new
Runnable
()
{
@Override
public
void
run
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment