Page 1 of 1

Object reference not set to an instance of an object (V4.6.19)

Posted: Wed Nov 16, 2022 10:00 am
by ruberked@gmail.com
Hello,

After upgrading to 4.6.19, we get the following exception upon saving an attachment to SP. Please see code snippet for reference. Thank you in advance!

Code:
IAttachmentFile newFile = folderItem.NewFile(Path.GetFileNameWithoutExtension(document.FileName), file, Path.GetExtension(document.FileName), "", AttachmentSource.Attached);
os.ApplyChanges(order);

Exception: Object reference not set to an instance of an object.
Stack trace:
at SoftPro.ClientModel.AsyncResult`1.get_Result()
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.EndApplyChanges(IAsyncResult ar)
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.ApplyChanges(IOrder order)
at PTHub.Connector.SoftPro.Api.Services.DocumentService.UploadDocument(Document document, Stream file) in ...\PTHub.Connector.SoftPro.Api\Services\DocumentService.cs:line 97

Re: Object reference not set to an instance of an object (V4.6.19)

Posted: Fri Nov 18, 2022 3:38 pm
by BobRichards
We are currently working on your issue. We will report the findings when we are done.