Update

fix problem that if file is null.