Just noticed that the original implementation of synchronizeObjectWithFile doesn't handle null objects too. I will raise a JIRA and fix that too. You can take care of the above comment?