Exit in case of no trigger to prevent seg fault