Mass. Gen. Laws ch. 106, § 9-407
(a) Term restricting assignment generally ineffective. Except as otherwise provided in subsection (b), a term in a lease agreement is ineffective to the extent that it:
(b) Effectiveness of certain terms. Except as otherwise provided in Section 2A–303(7), a term described in subsection (a)(2) is effective to the extent that there is: