fixed potential NullpointerEx
cleaned up pom.xml