fix null pointer with maven runner