NPE fix

Fixed NPE which occurs in my pom.xml