1

Closed

FormFileAttachment(2) throws if no content

description

if you read records without setting the optional argument i_IncludeFileAttachmentContent true, like this:
 
GrooveWebServicesV12Helpers.Forms.RecordDataSet records = formsTool.GetFormRecords(form.URI, true);
 
and then try to getFormFileAttachments, like this:
 
GrooveWebServicesV12Helpers.Forms.FormFileAttachment[] attachments
            = GrooveWebServicesV12Helpers.Forms.FormFileAttachment.GetFormFileAttachments(row);
 
Then, FormFileAttachment.cs will throw at line 54 -
 
System.Data.DataRow ChildContentsDataRow = m_FileAttachmentDataRow.GetChildRows("FileAttachment_Contents")[0];
 
Probably should check to see if there are any child rows before dereferencing them.
Closed Apr 20, 2007 at 11:56 PM by BobNovas
Fixed in Release 3

comments