Property (Relationships) Act 1976, s 21J
The court can only set aside a contracting out agreement if it would result in a “serious injustice” (be very unfair). For example, this might be where an agreement is very one-sided and doesn’t allow one partner to share in property acquired during the relationship.