Added target folder to gitignore
Added check for null
Incremented version in pom