The if condition mentioned below will never be true:
if (acceptors != null) {
acceptors.add(to)
}
because you have set the
val acceptors : ArrayList<Party>? = null;
So the if condition is always false and acceptors.add(to) is never executed.
Instead of
val acceptors : ArrayList<Party>? = null; try val acceptors = mutableListOf<Party>()