Fix NPE in media record.
This commit is contained in:
parent
3943e670b2
commit
856bd54059
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ public class MediaRecorderWrapper implements Recorder {
|
|||
|
||||
@Override
|
||||
public void stop() {
|
||||
if (recorder == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
recorder.stop();
|
||||
} catch (RuntimeException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue