question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended asked

Always getting 'Object reference not set to an instance of an object' when getorders.execute

I used the example from this link https://ebaydts.com/eBayKBDetails?KBid=1680, and tried to get familiar with SDK. However, I always get an exception 'Object reference not set to an instance of an object' when GetOrdersCall object is executed in line getorders__1.Execute(). Can someone give some hints? How to solve this problem? Thanks a lot! Fei
getorders
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
devanathan.developersupport@ebay.com avatar image
0 Likes"
devanathan.developersupport@ebay.com answered
Hello fe_wan1, You will get this error when the value is not available in the response. Before you assign a value from the response object check whether the property is available in the response object and it has a value in it. Best Regards, Devanathan Sampath, eBay Developer Support
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.