Merge pull request #1746 from lee-b/feature/silent_mode
Fix potential NPE in AlarmSoundService destructor.
This commit is contained in:
commit
88031b2322
|
@ -75,8 +75,11 @@ public class AlarmSoundService extends Service {
|
|||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
if (player != null) {
|
||||
player.stop();
|
||||
player.release();
|
||||
}
|
||||
|
||||
if (L.isEnabled(L.CORE))
|
||||
log.debug("onDestroy");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue