Fix NPE on Triggers.