IB 5389 then EC 7173 at Barcelona
Bari → Barcelona → Berlin
Timetable, Barcelona time
23:25IB 5389 from Bari at the gatealso LL 5389, VY 6113
18:40EC 7173 to Berlin leaves the gate
19 h 15 apart on the timetable, overnight
EC 7173 leaves 19 h 15 after IB 5389 arrives on the timetable: more than half a day, so not a connection we count.