fixed judge null and .gitignore file