modify write code style about null point