While ordinarily an agreement or stipulation between a prior landlord and tenant is binding on a successor landlord, regardless of whether it is contained in the lease or rider, the motion to dismiss, which was based on petitioner's predecessor's waiver of the primary residence requirement in a so-ordered stipulation with respondent settling a prior summary proceeding, was properly denied on the ground that the stipulation waiving the primary residence requirements of the Rent Stabilization Law is against public policy and unenforceable (Park Towers S. Co. v. Universal Attractions, 274 A.D.2d 312).