better error handling
This commit is contained in:
parent
4c805497ac
commit
da649cef66
1 changed files with 1 additions and 1 deletions
|
|
@ -814,7 +814,7 @@ public class RecordingActivity extends AppCompatActivity {
|
|||
AlertDialog.Builder builder = new AlertDialog.Builder(RecordingActivity.this);
|
||||
builder.setTitle("Error");
|
||||
String msg = encoder.getException().getMessage();
|
||||
if (msg.isEmpty()) {
|
||||
if (msg == null || msg.isEmpty()) {
|
||||
Throwable t = encoder.getException();
|
||||
while (t.getCause() != null)
|
||||
t = t.getCause();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue