File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
android/src/main/java/com/masteratul/exceptionhandler Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,13 @@ public class DefaultErrorScreen extends Activity {
2222 @ Override
2323 protected void onCreate (Bundle savedInstanceState ) {
2424 super .onCreate (savedInstanceState );
25- String stackTraceString = getIntent ().getExtras ().getString ("stack_trace_string" );
25+ String stackTraceString = "StackTrace unavailable" ;
26+ try {
27+ stackTraceString = getIntent ().getExtras ().getString ("stack_trace_string" );
28+ }
29+ catch (Exception e ) {
30+ Log .e (TAG , String .format ("Was not able to get StackTrace: %s" , e .getMessage ()));
31+ }
2632 setContentView (R .layout .default_error_screen );
2733 quitButton = (Button ) findViewById (R .id .eh_quit_button );
2834 relaunchButton = (Button ) findViewById (R .id .eh_restart_button );
You can’t perform that action at this time.
0 commit comments