rjsalazar | Posts: 4

Runtime error

0 votes
The .Net SDK throws exception “Object reference not set to an instance of an object.” When we try to retrieve some data like (Layouts, Sender info, Auditlog) and there is no data. It would be better if it just return null, instead of going to the exception path. Thanks,

mwilliams | Posts: 957

Reply to: Runtime error

0 votes
Have you tried using a try/catch to catch the exception? Or is your issue simply with the exception that is thrown by the SDK?

BharathiSankar | Posts: 11

Reply to: Runtime error

0 votes
SDK throws exception when there is no data, we expect it to return null.

mwilliams | Posts: 957

Reply to: Runtime error

0 votes
Could you post this in the enhancement ideas forum to return null when requested objects are null vs giving an error? I'll forward that post on to our Product Management team.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off