There's a risk, with 50 mins you don't have much room for error but all he has to do is walk to the gate, go through security then a brief trip to the plane. I've done all that in under 15 mins before. I'd hesitate to book it primarily because you don't know if that Krakow flight is punctual.