FR 10 then LH 1805 at Madrid
Dublin → Madrid → Munich
Timetable, Madrid time
23:55FR 10 from Dublin at the gate
18:35LH 1805 to Munich leaves the gate
18 h 40 apart on the timetable, overnight
LH 1805 leaves 18 h 40 after FR 10 arrives on the timetable: more than half a day, so not a connection we count.