You don't have to choose any targets for Rooftop Percher's triggered ability. However, if you do and all of the targets are illegal as the ability tries to resolve, it won't resolve and none of its effects will happen. You won't gain life.