Null Pointer Exception on recordToDocument

I am mapping an IDoc to xml record, then tring to convert the xml record to a document, (recordToDocument), but I am getting a null pointer exception. I don’t understand why. I do have some fields that are null, so does that mean that documentToRecord can’t handle null fields?

–steve

oops,

I said in the above question, I said, “, so does that mean that documentToRecord can’t handle null fileds?” What I mean to say was, “, so does that mean that recordToDocument can’t handle null fileds?”

steve