If there is no Wall to target, then the ability just gets removed from the stack before any player gets priority.

Artwork
Loading artwork…
Goblin Masons
Urza's Destiny · #86 · EN
Nonfoil—Foil—
Card rules
When this creature dies, destroy target Wall.
2/1
"Goblins build with true zeal—and anything else within arm's reach."
Common · Illustrated by DiTerlizzi
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH Legal
Premodern Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions