Skip to content

Commit

Permalink
Merge pull request #101 from psegalen/master
Browse files Browse the repository at this point in the history
Fix issue #100 (Crash in DefaultErrorScreen.onCreate on rooted phones)
  • Loading branch information
a7ul authored Mar 14, 2019
2 parents 7ed6f43 + 01f1437 commit 2848347
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ public class DefaultErrorScreen extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String stackTraceString = getIntent().getExtras().getString("stack_trace_string");
String stackTraceString = "StackTrace unavailable";
try {
stackTraceString = getIntent().getExtras().getString("stack_trace_string");
}
catch (Exception e) {
Log.e(TAG, String.format("Was not able to get StackTrace: %s", e.getMessage()));
}
setContentView(R.layout.default_error_screen);
quitButton = (Button) findViewById(R.id.eh_quit_button);
relaunchButton = (Button) findViewById(R.id.eh_restart_button);
Expand Down

0 comments on commit 2848347

Please sign in to comment.