FR 651 then FR 1901 at Dublin
Lisbon → Dublin → Krakow
Timetable, Dublin time
12:55FR 651 from Lisbon at the gate
10:00FR 1901 to Krakow leaves the gate
21 h 05 apart on the timetable, overnight
FR 1901 leaves 21 h 05 after FR 651 arrives on the timetable: more than half a day, so not a connection we count.