If you are trying to create a new task in a sharepoint workflow, and it is failing with null reference errors, or "value cannot be null" in the log files, make sure that you are setting the task ID to a valid GUID. It would appear that just setting the properties to a new field in the workflow...