Well that's why the potential is exactly there for.It is,you can imagine,some substance that has set up such a potential,and vacuum on either side of it.Take a different substance, for example with different molecular spacing and the potential would change.