N.Y. Business Corporation Law § 724
(a) Notwithstanding the failure of a corporation to provide indemnification, and despite any contrary resolution of the board or of the shareholders in the specific case under section 723 (Payment of indemnification other than by court award), indemnification shall be awarded by a court to the extent authorized under section 722 (Authorization for indemnification of directors and officers), and paragraph (a) of section 723. Application therefor may be made, in every case, either: