The official website for The Settlers of Catan

Question about The “Age of Darkness” Expansion Barbarian Attack - What if you have the same number of units as victory points from cities? Do I neither lose nor gain resources?

Answer

In case of a tie or if you don't have a city, nothing happens.