Spain hit the woodwork and had the better chances but were goalless against Germany at halftime in their World Cup Group E match on Sunday.
Dani Olmo's seventh minute shot was palmed onto the crossbar by keeper Manuel Neuer in a reflex save while Ferran Torres fired over the bar from point blank range in the 33rd.
Germany had an effort by Antonio Ruediger disallowed for offside.