commit d1f110acc6b4ddae6880820a9ed0f9f810793253 parent f6ffeaf32ebf83f741cdeb33485fec9e1e638378 Author: gstraube <gstraube@mailbox.org> Date: Sat, 14 Oct 2017 17:51:42 +0200 Add null check Diffstat:
| M | app/src/main/java/com/github/cythara/ListenerFragment.java | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/java/com/github/cythara/ListenerFragment.java b/app/src/main/java/com/github/cythara/ListenerFragment.java @@ -162,7 +162,7 @@ public class ListenerFragment extends Fragment { } private void stopAudioDispatcher() { - if (!audioDispatcher.isStopped()) { + if (audioDispatcher != null && !audioDispatcher.isStopped()) { audioDispatcher.stop(); IS_RECORDING = false; }