Fix NullPointerException in Activator