20. Nullity
(1) Where an event specified in any of paragraphs (a) to (c) occurs, a co-decision-making agreement shall, with effect from the date on which the event occurs, be null and void to the extent that the co-decision-making agreement relates to a relevant decision where there is, in respect of the relevant decision -
(a) a decision-making order or a decision-making representation order in relation to the appointer,
(b) an advance healthcare directive made by the appointer and the appointer lacks capacity, or
(c) an enduring power of attorney or enduring power under the Act of 1996 made by the appointer that has entered into force.
(2) A co-decision-making agreement shall, with effect from the date on which an event specified in any of paragraphs (a) to (c) occurs or, in the case of an event specified in paragraph (d), at the expiry of the period referred to in that paragraph, and unless it provides otherwise, be null and void where the co-decision-maker is the spouse of the appointer and subsequently -
(a) the marriage is annulled or dissolved either -