Not to take sides, but there's not a contradiction there. The immigration of refugees has been a topic of discussion for some time now (Brexit). Standard immigration is still difficult in most of the EU but there has been an influx of refugees who are primarily poor.
I don't agree with the characterization that the policies are due to racism though.