added chack for null revision
added missing wfProfileOut