nil error check
format
Merge pull request #8 from longbai/filerecorder_nil_error

file recorder nil error check