Skip to content

Error using Suppressions Retrieve "Cannot convert null to 'bool'" #117

@frarodnie

Description

@frarodnie

Looks like there is an error using Suppressions.Retrieve("Email@dominio.com") method when the email is on the suppression list, throwing an error "Cannot convert null to 'bool' because it is a non-nullable value type" , if the email is not in the supression list works fine, everything was working ok one and a half moths ago, probably sparpork changed the data cooming back.

I'm using the library from NuGet package version 1.9.3,
by the way the NuGet package ZIP archive contains unsupported data structures.

Bellow a error trace:
at CallSite.Target(Closure , CallSite , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at SparkPost.Suppressions.ConvertResultsToAListOfSuppressions(Object results)
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at SparkPost.Suppressions.c__async2.MoveNext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions