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 @@ -57,7 +57,7 @@ public async Task<List<string>> SendEmailsAsync(List<Email> emails)
57
57
var responseContent = await response . Content . ReadAsStringAsync ( ) ;
58
58
var res = JsonConvert . DeserializeObject < EmailResponse > ( responseContent ) ;
59
59
60
- if ( res . Previews != null )
60
+ if ( res ? . Previews != null )
61
61
{
62
62
foreach ( var preview in res . Previews )
63
63
{
@@ -85,9 +85,9 @@ private ErrorType ParseErrorType(HttpStatusCode statusCode)
85
85
public class EmailResponsePreview
86
86
{
87
87
[ JsonProperty ( "preview" ) ]
88
- public string Preview { get ; set ; }
88
+ public string ? Preview { get ; set ; }
89
89
[ JsonProperty ( "email" ) ]
90
- public string Email { get ; set ; }
90
+ public string ? Email { get ; set ; }
91
91
}
92
92
93
93
public class EmailResponse
You can’t perform that action at this time.
0 commit comments