prevent nullpointer on validate extension