File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ public SentryStackTrace Create(Exception exception = null)
2626
2727 _options . DiagnosticLogger ? . LogDebug ( "Creating SentryStackTrace. isCurrentStackTrace: {0}." , isCurrentStackTrace ) ;
2828
29- return Create ( CreateStackTrace ( exception , isCurrentStackTrace ) , isCurrentStackTrace ) ;
29+ return Create ( CreateStackTrace ( exception ) , isCurrentStackTrace ) ;
3030 }
3131
32- protected virtual StackTrace CreateStackTrace ( Exception exception , bool isCurrentStackTrace ) =>
33- isCurrentStackTrace ? new StackTrace ( true ) : new StackTrace ( exception , true ) ;
32+ protected virtual StackTrace CreateStackTrace ( Exception exception ) =>
33+ exception == null ? new StackTrace ( true ) : new StackTrace ( exception , true ) ;
3434
3535 internal SentryStackTrace Create ( StackTrace stackTrace , bool isCurrentStackTrace )
3636 {
You can’t perform that action at this time.
0 commit comments