Add check for null egress type.