While there are conditions, you seem to imply that not having a border dispute is one of them, but that’s actually not true, other countries with border disputes did join NATO in the past (see Greece and Turkey for example). It ultimately comes down to votes.