Days before announcing a shareholder lawsuit against Bank of America, state Comptroller Thomas DiNapoli accepted $14,000 in campaign donations from a law firm hired to help litigate the case.

On July 22, Mr. DiNapoli, as the sole trustee of the state's public-employee pension fund, filed lawsuits against the bank and its Merrill Lynch & Co. unit.

On...