EC 7154 then VY 1164 at Barcelona
Milan → Barcelona → Munich
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:10VY 1164 to Munich leaves the gatealso IB 5084, LL 5084
18 h 55 apart on the timetable, overnight
VY 1164 leaves 18 h 55 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.